mirror of
https://github.com/shadowfacts/jinput-arm64.git
synced 2026-04-05 14:35:58 +00:00
Raw input has mouse buttons 4 and 5 as button 3 and 4 not side and extra.
This commit is contained in:
parent
083eee58ee
commit
10214031df
2 changed files with 19 additions and 2 deletions
|
|
@ -143,12 +143,12 @@ final class RawMouse extends Mouse {
|
|||
break;
|
||||
case EVENT_BUTTON_3:
|
||||
event_state = EVENT_BUTTON_4;
|
||||
if (makeButtonEvent(current_event, event, getSide(), RawDevice.RI_MOUSE_BUTTON_4_DOWN, RawDevice.RI_MOUSE_BUTTON_4_UP))
|
||||
if (makeButtonEvent(current_event, event, getButton3(), RawDevice.RI_MOUSE_BUTTON_4_DOWN, RawDevice.RI_MOUSE_BUTTON_4_UP))
|
||||
return true;
|
||||
break;
|
||||
case EVENT_BUTTON_4:
|
||||
event_state = EVENT_DONE;
|
||||
if (makeButtonEvent(current_event, event, getExtra(), RawDevice.RI_MOUSE_BUTTON_5_DOWN, RawDevice.RI_MOUSE_BUTTON_5_UP))
|
||||
if (makeButtonEvent(current_event, event, getButton4(), RawDevice.RI_MOUSE_BUTTON_5_DOWN, RawDevice.RI_MOUSE_BUTTON_5_UP))
|
||||
return true;
|
||||
break;
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue