Another way would be to use e.g. the flic lib without using the hub to listen to events from button presses, and then generate and send the OSC messages yourself.