示例#1
0
def main():
    init()
    oscid = listen(port=10001)
    bind(oscid, update_mouse, '/update')

    while True:
        readQueue(oscid)
示例#2
0
    def run(self):
        def handleOSCMsg(msg, source, s=self):
            """deals with "print" tagged OSC addresses """
#            print "source:", source
#            print "the oscaddress is ", msg[0]
#            print "the value is ", msg[2]
	    s.handleOSCMessage(source, msg)

        oscAPI.bind(handleOSCMsg, "/messageBoardGateway")
	oscAPI.getOSC(self.oscInSocket)