Example #1
0
        # debug
        numButtons = joystick.get_numbuttons()
        print joystick.get_name()
        print joystick.get_numaxes()
        print numButtons

    def __str__(self):
        return self.js.get_name()


"""
THREADS
"""

ps = PointStream()
DRAW = ps

simulator = sim.SIM()


def dac_thread(load_sim):
    global PLAYERS, DRAW

    while True:
        try:
            if load_sim == 0:
                d = dac.DAC(dac.find_first_dac())
                d.play_stream(ps)
            else:
                simulator.play_stream(ps)