Returns true if midi messages have come in since the last call to readMessage.

bool VRG3D::MidiInDevice::readMessage

(

unsigned char **

msgPtr,

int *

size

)

To avoid copy arrays around, this returns a pointer to the message buffer. But, the next time the device is polled, any new messages that came in will overwrite data in the message buffer. So, process the message immediately after this call, or copy it to another buffer on your own. Calling this function resets the hasMessageWaiting flag to false. returns true if haveMessageWaiting is true when the function is called.