Update gamepad touch support with latest protocol changes

This commit is contained in:
Cameron Gutman
2023-07-30 19:47:07 -05:00
parent bd68aebe4c
commit d7c76cfd2b
2 changed files with 26 additions and 9 deletions

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);