mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
Input event and device enums (#17514)
* Switch deviceID from int to enum InputDeviceID, globally * Switch axisId to enum InputAxis * Change int keycodes to InputKeyCode where it makes sense. * SDL input buildfix * SDL keycode buildfix * Switch on enum warning fixes * Qt keycode buildfix * iOS keycode buildfix * UWP keycode buildfix * More iOS buildfix * More iOS buildfix * Update DinputDevice.cpp
This commit is contained in:
@@ -112,6 +112,8 @@ bool ScrollView::Key(const KeyInput &input) {
|
||||
case DEVICE_ID_XR_CONTROLLER_RIGHT:
|
||||
scrollSpeed = 50;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
if (input.flags & KEY_DOWN) {
|
||||
@@ -127,6 +129,8 @@ bool ScrollView::Key(const KeyInput &input) {
|
||||
case NKCODE_EXT_MOUSEWHEEL_DOWN:
|
||||
ScrollRelative(scrollSpeed);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
return ViewGroup::Key(input);
|
||||
|
||||
Reference in New Issue
Block a user