Split controller motion events onto their own channels

This commit is contained in:
Cameron Gutman
2023-07-04 16:18:52 -05:00
parent 53c29f11ba
commit 377d37503f
3 changed files with 7 additions and 6 deletions
+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;