mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-19 07:38:28 +00:00
New Input::Event::FOCUS, rename keycode to code
This patch introduces keyboard-focus events to the 'Input::Event' class and changes the name 'Input::Event::keycode' to 'code'. The 'code' represents the key code for PRESS/RELEASE events, and the focus state for FOCUS events (0 - unfocused, 1 - focused). Furthermore, nitpicker has been adapted to deliver FOCUS events to its clients. Fixes #609
This commit is contained in:
@ -994,7 +994,7 @@ int main(int, char **)
|
||||
|
||||
bool press = (event->type() == Input::Event::PRESS ? true : false);
|
||||
bool release = (event->type() == Input::Event::RELEASE ? true : false);
|
||||
int keycode = event->keycode();
|
||||
int keycode = event->code();
|
||||
|
||||
if (press || release)
|
||||
scancode_tracker.submit(keycode, press);
|
||||
|
Reference in New Issue
Block a user