Code: Select all
def update():
keyboard.setKey(Key.V, wiimote[0].buttons.button_down(WiimoteButtons.DPadUp)) #Green
keyboard.setKey(Key.C, wiimote[0].buttons.button_down(WiimoteButtons.DPadDown)) #Red
keyboard.setKey(Key.X, wiimote[0].buttons.button_down(WiimoteButtons.A)) #Yellow
keyboard.setKey(Key.Z, wiimote[0].buttons.button_down(WiimoteButtons.One)) #Blue
keyboard.setKey(Key.A, wiimote[0].buttons.button_down(WiimoteButtons.Two)) #Orange
keyboard.setKey(Key.UpArrow, wiimote[0].buttons.button_down(WiimoteButtons.Plus)) #Strum(up)
if starting:
wiimote[0].buttons.update += update