Don’t know if this is really the right place for this, but I can’t imagine trying to do this on windows! Not saying it couldn’t be done, but I wouldn’t know where to start

I got a new laptop with a backlit RGB keyboard, but no capslock, numlock indicators. I figured I could solve that by just setting the backlight of the key if capslock is enabled. I got that working, but that’s boring.

While I was doing that I realised that I was baaaasically working with a 20x6 LED display sooooo…

Behold! Playing snake on my laptop!

Source code is very specifically for my Kfocus M2 Gen 5, which I believe is just a branded Schenker KEY 17 Pro (M24)

Having said that, it could be adapted to other keyboards fairly easily:

https://gist.github.com/Kraiden/5393bc30f4c29d8b8dd51b4c21c0c829

  • Hnery@feddit.org
    link
    fedilink
    arrow-up
    10
    arrow-down
    1
    ·
    28 days ago

    That’s the stuff we need open source operating systems for, very nice!