mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-13 22:40:29 +02:00
Fix smooth touchpad scrolling on Windows
Forgot that I had half-implemented it but not finished it up..
This commit is contained in:
1 parent
9f85323b8a
commit
30c591e813
1 file changed
+5
@@ -866,6 +866,11 @@ 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
|
||||
}
|
||||
|
||||
switch (input.keyCode) {
|
||||
case NKCODE_EXT_MOUSEWHEEL_UP:
|
||||
ScrollRelative(-scrollSpeed);
|
||||
|
||||
Reference in new issue
Block a user