Update gamepad touch support with latest protocol changes

This commit is contained in:
Cameron Gutman committed 2023-08-03 19:16:09 -05:00
1 parent bd68aebe4c
commit d7c76cfd2b
2 files changed
+26 -9

No files matched your search

+3 -3
View File
@@ -995,9 +995,9 @@ namespace input {
{ gamepad.id, packet->controllerNumber },
packet->eventType,
util::endian::little(packet->pointerId),
from_netfloat(packet->x),
from_netfloat(packet->y),
from_netfloat(packet->pressure),
from_clamped_netfloat(packet->x, 0.0f, 1.0f),
from_clamped_netfloat(packet->y, 0.0f, 1.0f),
from_clamped_netfloat(packet->pressure, 0.0f, 1.0f),
};
platf::gamepad_touch(platf_input, touch);