Skip to content

Input Messages

Input messages are the objects sent by the controller to the game host during gameplay. Each message type is sent on its own dedicated channel and has a default reliability mode.

Message Types

Object Class ID Channel Default Reliability Description
Ping 11 0 (Broadcast) Reliable Latency probe with device identity and address.
AckPacket 9 0 (Broadcast) Reliable Connection acknowledgment with host identity and address.
Acceleration 5 1 (Acceleration) Unreliable Accelerometer reading (x, y, z).
TouchSet 6 2 (Touch) Unreliable Multi-touch input (list of Touch points).
DPadUpdate 24 8 (DPad) Reliable Directional pad input (x, y).
BMGyro 22 6 (Gyro) Unreliable Gyroscope reading (x, y, z).
Orientation 23 7 (Orientation) Unreliable Orientation quaternion (x, y, z, w).

Notes

  • Unreliable channels can be overridden to reliable via setReliabilityForTouch. See Reliability Modes.
  • Flash games always force all channels to reliable (TCP). See Reliability Modes.