mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-14 18:19:36 +01:00
Add mouse wheel support for Android
Fixes #18471 Tested on a Poco F4 phone with a generic Bluetooth mouse.
This commit is contained in:
1 parent
c1637b023b
commit
84d3bfc506
3 files changed
+21
-3
No files matched your search
@@ -119,7 +119,7 @@ bool ScrollView::Key(const KeyInput &input) {
|
||||
if (input.flags & KEY_DOWN) {
|
||||
if ((input.keyCode == NKCODE_EXT_MOUSEWHEEL_UP || input.keyCode == NKCODE_EXT_MOUSEWHEEL_DOWN) &&
|
||||
(input.flags & KEY_HASWHEELDELTA)) {
|
||||
scrollSpeed = (float)(short)(input.flags >> 16) * 1.25f; // Fudge factor
|
||||
scrollSpeed = (float)(short)(input.flags >> 16) * 1.25f; // Fudge factor. TODO: Should be moved to the backends.
|
||||
}
|
||||
|
||||
switch (input.keyCode) {
|
||||
|
||||
Reference in new issue
Block a user