Closed tmk closed 3 years ago
I seems that the keycodes 0xB0-0xDD are not supported by Windows and Linux and not useful in fact.
Using the code ranges(0xA5-FF) for TMK internal special purpose would be reasonable and preferable for users.
In current implementation, they are actually used as keyocodes of media keys and mouse keys. I'll keep this current implementation and KP_00
and KP_000
are not supported by default.
If you want to send USB HID usage range (0xB0-DD) instead of media/mouse keys define USE_ORIGINAL_HID_USAGE
in config.h.
It may be useful to define builtin macro for the 00 and 000 on specific keyboard like IBM 4704 keyboards. https://geekhack.org/index.php?topic=54706.0
Keycodes 0xB0-0xDD(HID usages) including
KP_00
andKP_000
are not supported with current firmware.https://github.com/tmk/tmk_keyboard/blob/master/tmk_core/common/keycode.h#L357-L402
0xA5-DF and 0xF0-FF are used for special purpose like media and mouse keys. This code range conflicts the HID usages(0xB0-DD). https://github.com/tmk/tmk_keyboard/blob/master/tmk_core/common/keycode.h#L417-L483
With current implementation
ACTION_KEY(0xB0)
is translated toKC_MEDIA_PLAY_PAUSE
, notKC_KP_00
.This patch changes this behaviour in reverse.
register_code()
andunregister_code()
need to be changed, perhaps. https://github.com/tmk/tmk_keyboard/blob/master/tmk_core/common/action.c#L418-L441Also refer to this. https://deskthority.net/viewtopic.php?p=487067#p487067