Opened 5 years ago
Last modified 4 months ago
#15224 closed enhancement
Implement media keys — at Version 6
Reported by: | nephele | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | R1/beta5 |
Component: | Drivers/Input | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description (last modified by )
This here to track the Implementation of media keys, with the end goal of having that sweet out of the box experience with the calculator button working.
Tasks:
[DONE] add documentation about current and new haiku keycodes (https://review.haiku-os.org/c/haiku/+/1676)
(future task: change this when code changes :)
[DONE] add mediakeys to ps2 driver (https://review.haiku-os.org/c/haiku/+/1675)
(future task: add webcam key on my keyboard, and sms key...)
add mediakeys to usb_hid driver
add ability for shortcuts (the application/settings thing) to fire ipc calls
add default shortcuts file
map new keycodes to 0x10 in src/data/keymaps
Modify the keymap parser and introduce version 4 which allows 256 instead of 128 distinct mapings
define new keycodes in headers/os/InterfaceDefs.h (in progress: https://review.haiku-os.org/c/haiku/+/1695)
Change History (7)
comment:1 by , 5 years ago
comment:2 by , 5 years ago
I would think that mapping them would be a bit better, then there is only one mapping needed in the default shortcuts. (i.e users willl just see "volume up" -> "volume up key" instead of severall different ones looking like "volume up" -> "garbage hex value")
On another note I cannot figure out how to assign a key which i shall press in the shortcuts application, is that broken?
comment:3 by , 5 years ago
You just click the "shortcut" column to set keyboard focus on it and press the key to assign it in Shortcuts. It works (for me at least?) but it's confusing.
comment:5 by , 5 years ago
Two more tasks:
map new keycodes to 0x10 in src/data/keymaps
define the new keycodes in headers/os/InterfaceDefs.h
(If there is a way to edit my description i sure have not found it)
For reference I am working on those two at the moment.
I will attach the reference file I have for the keycodes in case somebody wants to work on the usb_hid driver (in src/add-ons/kernel/drivers/input/usb_hid)
comment:6 by , 5 years ago
Description: | modified (diff) |
---|
As far as USB HID is concerned, there is no change. Special keys will just be reported as normal keys with their special value. These can then be assigned in Shortcuts. This has already worked since the introduction of USB HID.