mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 05:26:24 +02:00
Implement full support for mouse input on Android
The smoothing algorithm changed a bit now that I centralized that logic in a way that can work with all backends.
This commit is contained in:
1 parent
904ce4f7e1
commit
db4993bfdc
10 files changed
+120
-64
No files matched your search
@@ -317,11 +317,7 @@ namespace WindowsRawInput {
|
||||
KeyInput key;
|
||||
key.deviceId = DEVICE_ID_MOUSE;
|
||||
|
||||
float mx, my;
|
||||
g_inputManager.AccumulateMouseDeltas(raw->data.mouse.lLastX, raw->data.mouse.lLastY, &mx, &my);
|
||||
|
||||
HLEPlugins::PluginDataAxis[JOYSTICK_AXIS_MOUSE_REL_X] = mx;
|
||||
HLEPlugins::PluginDataAxis[JOYSTICK_AXIS_MOUSE_REL_Y] = my;
|
||||
NativeMouseDelta(raw->data.mouse.lLastX, raw->data.mouse.lLastY);
|
||||
|
||||
static const int rawInputDownID[5] = {
|
||||
RI_MOUSE_LEFT_BUTTON_DOWN,
|
||||
|
||||
Reference in new issue
Block a user