joeycastillo / Sensor-Watch

A board replacement for the classic Casio F-91W wristwatch
Other
1.02k stars 210 forks source link

Fix simulator keyboard shortcuts #330

Closed hchargois closed 7 months ago

hchargois commented 7 months ago

For context, currently in the simulator, A, L and M keys are shortcuts to "press" Alarm, Light and Mode buttons.

There was a few issues with that.

First issue is that these shortcuts prevented typing these letters in the debug console input.

Second thing is more a matter of taste; even though A, L and M are pretty logical, they are unfortunately physically located on a keyboard in the "wrong" places: A is on the left side of the keyboard while on the watch it's on the right, and for L it's the opposite. This made the shortcuts very counter-intuitive to actually use. For this reason, I added the arrow keys as shortcuts. Arrow up is the Light (the button on the top-left of the watch, arrow down (or left) is the Mode (the button on the bottom-left of the watch), and arrow right is the Alarm (button on the bottom-right).

Arrows have the benefit that contrary to any other letter keys, we can expect them to be placed in the correct disposition on all keyboards.