mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 05:37:54 +00:00
parent
8a4b52d9e3
commit
bf3ad3baff
@ -167,7 +167,9 @@ void GenodeConsole::_handle_input()
|
||||
auto curr_mouse_button_bits = [&] () {
|
||||
return (_key_status[Input::BTN_LEFT] ? MouseButtonState_LeftButton : 0)
|
||||
| (_key_status[Input::BTN_RIGHT] ? MouseButtonState_RightButton : 0)
|
||||
| (_key_status[Input::BTN_MIDDLE] ? MouseButtonState_MiddleButton : 0);
|
||||
| (_key_status[Input::BTN_MIDDLE] ? MouseButtonState_MiddleButton : 0)
|
||||
| (_key_status[Input::BTN_SIDE] ? MouseButtonState_XButton1 : 0)
|
||||
| (_key_status[Input::BTN_EXTRA] ? MouseButtonState_XButton2 : 0);
|
||||
};
|
||||
|
||||
unsigned const old_mouse_button_bits = curr_mouse_button_bits();
|
||||
|
@ -132,13 +132,6 @@ class GenodeConsole : public Console {
|
||||
|
||||
bool _key_status[Input::KEY_MAX + 1];
|
||||
|
||||
static bool _mouse_button(Input::Keycode keycode)
|
||||
{
|
||||
return keycode == Input::BTN_LEFT
|
||||
|| keycode == Input::BTN_RIGHT
|
||||
|| keycode == Input::BTN_MIDDLE;
|
||||
}
|
||||
|
||||
void _handle_input();
|
||||
void _handle_mode_change();
|
||||
void _handle_cb_rom_change();
|
||||
|
@ -42,7 +42,9 @@ struct Input_adapter
|
||||
{
|
||||
return keycode == Input::BTN_LEFT
|
||||
|| keycode == Input::BTN_RIGHT
|
||||
|| keycode == Input::BTN_MIDDLE;
|
||||
|| keycode == Input::BTN_MIDDLE
|
||||
|| keycode == Input::BTN_SIDE
|
||||
|| keycode == Input::BTN_EXTRA;
|
||||
}
|
||||
|
||||
void handle_input_event(Input::Event const &);
|
||||
@ -105,7 +107,9 @@ void Input_adapter::Mouse::handle_input_event(Input::Event const &ev)
|
||||
auto curr_mouse_button_bits = [&] () {
|
||||
return (_key_status[Input::BTN_LEFT] ? MouseButtonState_LeftButton : 0)
|
||||
| (_key_status[Input::BTN_RIGHT] ? MouseButtonState_RightButton : 0)
|
||||
| (_key_status[Input::BTN_MIDDLE] ? MouseButtonState_MiddleButton : 0);
|
||||
| (_key_status[Input::BTN_MIDDLE] ? MouseButtonState_MiddleButton : 0)
|
||||
| (_key_status[Input::BTN_SIDE] ? MouseButtonState_XButton1 : 0)
|
||||
| (_key_status[Input::BTN_EXTRA] ? MouseButtonState_XButton2 : 0);
|
||||
};
|
||||
|
||||
unsigned const old_mouse_button_bits = curr_mouse_button_bits();
|
||||
|
Loading…
Reference in New Issue
Block a user