From 55b5d8dce67c45ab717a203868b1e71047857177 Mon Sep 17 00:00:00 2001
From: Peter Kosyh
Date: Mon, 11 Nov 2019 21:59:39 -0500
Subject: [PATCH] haiku: Invert mouse wheel values to match what SDL expects.
Partially fixes Bugzilla #4442.
---
src/main/haiku/SDL_BApp.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/haiku/SDL_BApp.h b/src/main/haiku/SDL_BApp.h
index 48a29799a..086c8474a 100644
--- a/src/main/haiku/SDL_BApp.h
+++ b/src/main/haiku/SDL_BApp.h
@@ -261,7 +261,7 @@ private:
return;
}
win = GetSDLWindow(winID);
- SDL_SendMouseWheel(win, 0, xTicks, yTicks, SDL_MOUSEWHEEL_NORMAL);
+ SDL_SendMouseWheel(win, 0, xTicks, -yTicks, SDL_MOUSEWHEEL_NORMAL);
}
void _HandleKey(BMessage *msg) {