Split controller motion events onto their own channels

This commit is contained in:
Cameron Gutman committed 2023-07-04 16:18:52 -05:00
1 parent 53c29f11ba
commit 377d37503f
3 files changed
+7 -6

No files matched your search

+2 -2
View File
@@ -1421,8 +1421,8 @@ int LiSendControllerMotionEvent(uint8_t controllerNumber, uint8_t motionType, fl
return -1;
}
// Send each controller on a separate channel
holder->channelId = CTRL_CHANNEL_GAMEPAD_BASE + controllerNumber;
// Send each controller on a separate channel specific to motion sensors
holder->channelId = CTRL_CHANNEL_SENSOR_BASE + controllerNumber;
// Motion events are so rapid that we can just drop any events that are lost in transit
holder->enetPacketFlags = 0;