Parses data packets from a BLOCKS device, and translates them into callbacks on a handler object.
More...
|
| static void | processNextPacket (Handler &handler, TopologyIndex deviceIndex, const void *data, int size) |
| |
| static bool | processNextMessage (Handler &handler, Packed7BitArrayReader &reader, TopologyIndex deviceIndex, PacketTimestamp packetTimestamp) |
| |
| static bool | handleTopology (Handler &handler, Packed7BitArrayReader &reader) |
| |
| static void | handleTopologyDevice (Handler &handler, Packed7BitArrayReader &reader) |
| |
| static void | handleTopologyConnection (Handler &handler, Packed7BitArrayReader &reader) |
| |
| static bool | handleTouch (Handler &handler, Packed7BitArrayReader &reader, TopologyIndex deviceIndex, PacketTimestamp packetTimestamp, bool isStart, bool isEnd) |
| |
| static bool | handleTouchWithVelocity (Handler &handler, Packed7BitArrayReader &reader, TopologyIndex deviceIndex, PacketTimestamp packetTimestamp, bool isStart, bool isEnd) |
| |
| static void | handleTouch (Handler &handler, TopologyIndex deviceIndex, uint32 timestamp, TouchIndex touchIndex, TouchPosition position, TouchVelocity velocity, bool isStart, bool isEnd) |
| |
| static bool | handleButtonDownOrUp (Handler &handler, Packed7BitArrayReader &reader, TopologyIndex deviceIndex, PacketTimestamp packetTimestamp, bool isDown) |
| |
| static bool | handlePacketACK (Handler &handler, Packed7BitArrayReader &reader, TopologyIndex deviceIndex) |
| |
template<typename Handler>
struct HostPacketDecoder< Handler >
Parses data packets from a BLOCKS device, and translates them into callbacks on a handler object.