Changes between Version 1 and Version 2 of Ticket #8370, comment 10
- Timestamp:
- Mar 23, 2013, 10:50:25 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #8370, comment 10
v1 v2 1 1 Replying to [comment:8 leavengood]: 2 2 > That looks pretty good. Just be sure to check the Keymap preflet code before you try to implement keymap support, as I suspect that will have most of what you would need (as Axel suggested.) 3 BeAPI already has function ''get_key_map'' for handling keymaps. This function is enough for keyboard. I wrote special class "KeyboardHandler" that gets scancodes and produces messages. Also it handles states of caps, num and scroll lock keys, keystroke repeating by separate thread. For now handling deadkeys is missing. Keymap handling is a little part of this class. Most part is message generation that duplicates hardware keyboard input_server device.3 BeAPI already has function ''get_key_map'' for handling keymaps. This function is enough for keyboard. I wrote special class "KeyboardHandler" that gets scancodes and produces messages. Also it handles states of caps, num and scroll lock keys, keystroke repeating by separate thread. For now handling deadkeys is missing. Keymap handling is a little part of this class. Most part is message generation that duplicates functionality of hardware keyboard input_server device. 4 4 5 5 Replying to [comment:9 axeld]: