Wii Les Paul Guitar Controller with FreePIE
Posted: Sun Oct 23, 2016 7:28 pm
I want to use my Wii Les Paul guitar controller with Guitar Hero 3 on my PC. I have gotten the following code to work in the game perfectly as a test but now I need to know what to do for guitar input since WiimoteButtons don't work with the guitar.
Now I just need to know how to get input from the guitar instead of just the wiimote and be able to use the whammy bar and pitch of the wiimote for star power(have the spacebar pressed when the pitch above a number). There is GlovePIE code here.
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