Author Topic: Joystick Support - GlovePIE Script  (Read 6462 times)

kamahl

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
Joystick Support - GlovePIE Script
« on: May 16, 2008, 03:47:28 am »
This script maps your joystick to the `1234 keyboard controls. 
You will need to download and install GlovePIE to run it.  I advise you to open audiosurf before launching script.

Code: [Select]
/*
Audiosurf Joystick controls.
Made Kamahl Zinier, 16/5/08

Designed for a Microsoft Sidewinder 3D Pro;
Feel free to modify the buttons if they are innapropriate for your joystick.
*/
key.Console = joystick.x <= -1
key.One = -1 < joystick.x < -0.5
key.two = -0.5 < joystick.x < 0.5
key.three = 0.5 < joystick.x < 1
key.four = joystick.x >= 1
key.Z = joystick.Button1
key.X = joystick.Button2
key.Escape = Joystick.Button3

Save that to audiosurf.PIE, and load with glovePIE

Yes, there's no spacebar, but you really shouldn't be using pointman casual anyway :P
It's also certain not to work on double vision, because those use arrow keys, which would be kinda hard to map to a joystick.

Disclaimer:  I take no responsibility for random typing you may cause by activating the script early, or not quitting it. 

Remember to calibrate the the joystick!
« Last Edit: May 16, 2008, 04:03:56 am by kamahl »