JUCE
Static Public Member Functions | List of all members
HostPacketDecoder< Handler > Struct Template Reference

Parses data packets from a BLOCKS device, and translates them into callbacks on a handler object. More...

Static Public Member Functions

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)
 

Detailed Description

template<typename Handler>
struct HostPacketDecoder< Handler >

Parses data packets from a BLOCKS device, and translates them into callbacks on a handler object.

Member Function Documentation

§ processNextPacket()

template<typename Handler >
static void HostPacketDecoder< Handler >::processNextPacket ( Handler &  handler,
TopologyIndex  deviceIndex,
const void *  data,
int  size 
)
static

§ processNextMessage()

template<typename Handler >
static bool HostPacketDecoder< Handler >::processNextMessage ( Handler &  handler,
Packed7BitArrayReader reader,
TopologyIndex  deviceIndex,
PacketTimestamp  packetTimestamp 
)
static

§ handleTopology()

template<typename Handler >
static bool HostPacketDecoder< Handler >::handleTopology ( Handler &  handler,
Packed7BitArrayReader reader 
)
static

§ handleTopologyDevice()

template<typename Handler >
static void HostPacketDecoder< Handler >::handleTopologyDevice ( Handler &  handler,
Packed7BitArrayReader reader 
)
static

§ handleTopologyConnection()

template<typename Handler >
static void HostPacketDecoder< Handler >::handleTopologyConnection ( Handler &  handler,
Packed7BitArrayReader reader 
)
static

§ handleTouch() [1/2]

template<typename Handler >
static bool HostPacketDecoder< Handler >::handleTouch ( Handler &  handler,
Packed7BitArrayReader reader,
TopologyIndex  deviceIndex,
PacketTimestamp  packetTimestamp,
bool  isStart,
bool  isEnd 
)
static

§ handleTouchWithVelocity()

template<typename Handler >
static bool HostPacketDecoder< Handler >::handleTouchWithVelocity ( Handler &  handler,
Packed7BitArrayReader reader,
TopologyIndex  deviceIndex,
PacketTimestamp  packetTimestamp,
bool  isStart,
bool  isEnd 
)
static

§ handleTouch() [2/2]

template<typename Handler >
static void HostPacketDecoder< Handler >::handleTouch ( Handler &  handler,
TopologyIndex  deviceIndex,
uint32  timestamp,
TouchIndex  touchIndex,
TouchPosition  position,
TouchVelocity  velocity,
bool  isStart,
bool  isEnd 
)
static

§ handleButtonDownOrUp()

template<typename Handler >
static bool HostPacketDecoder< Handler >::handleButtonDownOrUp ( Handler &  handler,
Packed7BitArrayReader reader,
TopologyIndex  deviceIndex,
PacketTimestamp  packetTimestamp,
bool  isDown 
)
static

§ handlePacketACK()

template<typename Handler >
static bool HostPacketDecoder< Handler >::handlePacketACK ( Handler &  handler,
Packed7BitArrayReader reader,
TopologyIndex  deviceIndex 
)
static

The documentation for this struct was generated from the following file: