i use a SpaceMouse Pro
with SPACE i will set my Axis to 0
it will work with this scripts, but when i release the SPACE button the axes jump to the last position.
so, how i can set my vjoy Axis to middle
Code: Select all
if starting:
import time
axis_mult = (vJoy[0].axisMax / 1000)
vJoy[0].x = (joystick[3].x + 1 ) * axis_mult
vJoy[0].y = (joystick[3].y + 1 ) * axis_mult
if keyboard.getKeyDown(Key.Space):
vJoy[0].x = 0