#7963: get_keyboard_id in InterfaceDefs unimplmented ------------------------------------+---------------------------- Reporter: jscipione | Owner: siarzhuk Type: enhancement | Status: assigned Priority: normal | Milestone: R1 Component: Servers/input_server | Version: R1/Development Resolution: | Keywords: Blocked By: | Blocking: Has a Patch: 1 | Platform: All ------------------------------------+---------------------------- Comment (by jscipione): Replying to [comment:6 mmu_man]: > Btw, keyboard_id isn't really a "setting" per see, it is a hardware report, there is no reason one should be able to set it. I only implemented it as a setting because I was grasping as straws. Setting the keyboard id should be done at Input Server init perhaps, then get_keyboard_id() should simply return the value. For multi-device support we could overload get_keyboard_id() to take an index so get_keyboard_id(0) would get the first keyboard's ID, get_keyboard_id(1) would get the second keyboard, etc. We would need to keep the parameterless key_keyboard_id() function for backwards compatibility and have it call get_keyboard_id(0). I was also thinking that it might be nice to extend get_keyboard_id() to get the USB ID of USB keyboards as well if you have one of those attached. But perhaps that is not very helpful without the USB Vendor ID as well. -- Ticket URL: <http://dev.haiku-os.org/ticket/7963#comment:8> Haiku <http://dev.haiku-os.org> Haiku - the operating system.