I would like to use FreePie and vJoy to re-map a xbox360 controller., and add new features. Unfortunately, I need some help...
Up to now, I (very) simply map main buttons, and it works: I can use this virtual controler with my PC. (Even if I don't really know what is "freeTrack"...)
Code: Select all
def update():
vJoy[1].rx =
vJoy[1].setButton(0, xbox360[0].a)
vJoy[1].setButton(1, xbox360[0].b)
vJoy[1].setButton(2, xbox360[0].x)
vJoy[1].setButton(3, xbox360[0].y)
vJoy[1].setButton(4, xbox360[0].leftShoulder)
vJoy[1].setButton(5, xbox360[0].leftTrigger)
vJoy[1].setButton(6, xbox360[0].rightShoulder)
vJoy[1].setButton(7, xbox360[0].rightTrigger)
vJoy[1].setButton(8, xbox360[0].back)
vJoy[1].setButton(9, xbox360[0].start)
if starting:
freeTrack.update += update
1) Do you know how I could map the left stick?
(I tried "vJoy[1].x = xbox360[0].leftStickX", but I was really too optimistic...)
2) Do you know how I could script this kind of things:
* If I press xbox360[0].a, then I press 3 times quickly the button 0 of vJoy[1].
* If I keep pressing xbox360[0].a, then I continue to press quickly the button 0 of vJoy[1].
I woul have some idea with glovePIE, but I can't do it with FreePIE...
This could be useful: "keyboard.getPressed(Key.LeftShift)", but it's for keyboard, not for xbox360, isn't it?
Thanks a lot!