glreno / rvkybard

rrvkb - Remote Retro Virtual Keyboard
Apache License 2.0
1 stars 0 forks source link

Need capslock etc lights #1

Open glreno opened 6 months ago

glreno commented 5 months ago

LEDs are added to most keyboards, but there are two problems:

  1. There is no initial state. They are all off by default. Once you press caps/num/scroll lock, it gets the state of all LEDs from the PC and maintains them correctly.
  2. Caps Lock on Atari is confusing. I think Altirra is tracking the state internally and ignoring the LEDs?
  3. It doesn't close down the reader thread promptly, so if you redeploy the war file you end up with two reader threads, and your LEDs stop working. Workaround: service restart tomcat8.service What I really need here is a way to send a request for the LED status, instead of passively waiting for it. Not clear how to do that using /dev/hidg0