You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 19:11:41 +00:00
osx: fix inverted horizontal scrolling
(cherry picked from commit 02eddbf7da)
This commit is contained in:
@@ -813,7 +813,7 @@ static int translateKey(unsigned int key)
|
||||
|
||||
InputEvent ev;
|
||||
ev.type=InputEvent::MOUSE_BUTTON;
|
||||
ev.mouse_button.button_index=deltaX >0 ? BUTTON_WHEEL_RIGHT : BUTTON_WHEEL_LEFT;
|
||||
ev.mouse_button.button_index=deltaX < 0 ? BUTTON_WHEEL_RIGHT : BUTTON_WHEEL_LEFT;
|
||||
ev.mouse_button.pressed=true;
|
||||
ev.mouse_button.x=mouse_x;
|
||||
ev.mouse_button.y=mouse_y;
|
||||
|
||||
Reference in New Issue
Block a user