Commit 32af8af2 authored by Teemu Erkkola's avatar Teemu Erkkola

Fix gamepad nub events

parent 161f357f
......@@ -352,7 +352,7 @@ void handle(input_event const& e, unsigned int role) {
if (role == ROLE_GPIO && global.settings.exportMouse) {
handleNubClick(global.settings.rightNubClickMode, e.value, global.mouse, global.gamepad, global.settings);
if (global.settings.exportGamepad) {
global.gamepad->send(EV_KEY, BTN_THUMBL, e.value);
global.gamepad->send(EV_KEY, BTN_THUMBR, e.value);
global.gamepad->send(EV_SYN, 0, 0);
}
}
......@@ -361,7 +361,7 @@ void handle(input_event const& e, unsigned int role) {
if (role == ROLE_GPIO && global.settings.exportMouse) {
handleNubClick(global.settings.leftNubClickMode, e.value, global.mouse, global.gamepad, global.settings);
if (global.settings.exportGamepad) {
global.gamepad->send(EV_KEY, BTN_THUMBR, e.value);
global.gamepad->send(EV_KEY, BTN_THUMBL, e.value);
global.gamepad->send(EV_SYN, 0, 0);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment