mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 16:20:11 -04:00
x11: Support mouse buttons 4 and 5
This commit is contained in:
parent
d1c756713d
commit
210f7aecfb
@ -1990,6 +1990,8 @@ get_mouse_button(XButtonEvent &button_event) {
|
||||
return MouseButton::wheel_left();
|
||||
} else if (index == x_wheel_right_button) {
|
||||
return MouseButton::wheel_right();
|
||||
} else if (index >= 8) {
|
||||
return MouseButton::button(index - 5);
|
||||
} else {
|
||||
return MouseButton::button(index - 1);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user