mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 07:18:40 +01:00
2141d2fe3a
- This key code is inherited from BeOS, where it was used for the power key on Apple ADB keyboards - Since then, we have introduced a new system for "multimedia" keys, that uses HID key codes directly instead of defining our own mappings - The PS2 driver was using the HID keycode, but the USB driver was still using the BeOS defined one - Japanese keyboards, which have a few more keys than US and European ones, reused the same keycode for something else Since the power key does not need to be mapped by the keymap, move it out of the way by using the HID keycode (key codes larger than 0x7f cannot be mapped to UTF8 symbols). Remove all mentions of the use of 0x6b as a keycode for the power key, but add a note in the documentation that BeOS did this. To avoid further confusions, complete the documentation of extra keycodes, and remove some definitions from keyboard_mouse_driver.h that should have been in InterfaceDefs.h. While researching this, I also found that some keys specific to Korean keyboards were declared in the wrong place, as mapped codes instead of unmapped ones (checked that by looking at the HID driver, which emits these raw keycodes, and confirming that the mapped ones are not used in any keymaps. Also added a note about the mapping of the extra modifier keys in Japanese keyboards, which I think may be a problem since these map to invalid UTF-8 byte sequences, but this is what the existing keymap does, so leaving it as is for now until we can determine if this can be changed or if we have to keep it that way. Change-Id: I6a198a0840cba7739bdc78e0c65e5d8fd23956c9 Reviewed-on: https://review.haiku-os.org/c/haiku/+/8047 Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk> |
||
---|---|---|
.. | ||
InputServerTypes.h | ||
kb_mouse_settings.h | ||
keyboard_mouse_driver.h | ||
shared_cursor_area.h | ||
touchpad_settings.h | ||
virtio_input_driver.h | ||
wacom_driver.h |