
import libi2dx

class I2DXWebSocketOSC(libi2dx.I2DXWebSocket):
	def toggle_key(self, key_id, state):
		print 'key', key_id, state

if __name__ == "__main__":
	libi2dx.serve(I2DXWebSocketOSC)


add a debug server module (will only show the buttons pressed, not sending any actual events)