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:
Henrik Rydgård committed 2023-12-10 09:52:19 +01:00
1 parent 904ce4f7e1
commit db4993bfdc
10 files changed
+120 -64

No files matched your search

+1 -5
View File
@@ -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,