bilbofroggins / KarabinerKeyboard

A layer-based alternative to Karabiner Elements UI
The Unlicense
41 stars 0 forks source link

Can you please add Numpad? #36

Open johnnyitd opened 1 month ago

johnnyitd commented 1 month ago

Would be great if Numpad buttons were present in the app.

bilbofroggins commented 1 month ago

@johnnyitd If you think you can give me your equivalent to this, then I can work on making the keyboard configurable: https://github.com/bilbofroggins/KarabinerKeyboard/blob/main/src/views/keyboard_view.py#L19

It's organized by row, so:

self.key_positions = [
            [first row keys],
            [second row keys],
            ...
]

raylib codes for the keypad are here: https://github.com/raysan5/raylib/blob/master/src/raylib.h#L668 and the number associated to each key is its width relative to a normal key. A blank space would be (None, 1)