mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix smooth touchpad scrolling on Windows
Forgot that I had half-implemented it but not finished it up..
This commit is contained in:
parent
9f85323b8a
commit
30c591e813
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue