Currently there is a simple callback-based event listener with a callback for each message type. I propose a single callback where a message object and type enum is used to determine the type and how to parse the data.
void pdMessageRecieved(ofxPdMessage& message) {
switch(message.type) {
case OFX_PD_BANG:
...
break;
case OFX_PD_NOTEON:
...
break;
...
Currently there is a simple callback-based event listener with a callback for each message type. I propose a single callback where a message object and type enum is used to determine the type and how to parse the data.