Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: User defined key coordinate transforms #585

noseglasses opened this issue Feb 22, 2019 · 0 comments


None yet
1 participant
Copy link

commented Feb 22, 2019

This is a follow up to discussion in the Keyboardio community forum:

When operating the mouse it would sometimes be nice to have all key-functionality available to the other (non-mouse) hand. This could of course be achieved using additional keymap layers but it seems to be a huge waste of PROGMEM.

In several occasions, e.g. when doing sports, it occurred to me that it is comparably easy to do the same movements with the other hand in a mirrored fashion, once you learned to perform some complex motion with one hand. It is e.g. not so hard to learn to play table tennis with the other hand once you know how to play. That’s why I imagine it not too complex a task to use (memorize) keys with the other hand in a mirrored fashion.

What I would like to have is a global function

KeyCoord messWithKeyCoordinates(KeyCoord in);

that the user could override. This function would be called by the firmware core in all places immediately before key coordinate based lookup occurs, including keycode lookup (or assignment) and LED access.

The system (Hardware) could then provide convenience functions such as

KeyCoord mirrorKeyCoordinate(KeyCoord in);
KeyCoord shiftKeyCoordinate(byte xOffset, byte yOffset, bool wrapAround, KeyCoord in);

thus not requiring the user to care too much about the dimensions of the key matrix. Those auxiliary functions could then be used in a messWithKeyCoordinates override.

In this proposal I deliberately do not pass the layer id to messWithKeyCoordinates because mapping is supposed to affect only the physical position of the keys and LEDs, thereby pretending that they have a different layout. Besides, LEDs don't feature layering anyway.

@noseglasses noseglasses changed the title Feature RequestUser defined Feature Request: User defined key coordinate transforms Feb 22, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.