Author Topic: AS Controllers (gamepad script)  (Read 10386 times)

gike987

  • Newbie
  • *
  • Posts: 14
    • View Profile
AS Controllers (gamepad script)
« on: May 22, 2009, 04:21:07 am »
Update: version 0.0.3 you can now change to DV mode as intended

Update: version 1.0.0.0 beta release. I have now moved over to using AutoHotkey (you shouldn't need AutoHotkey to run it). This version doesn't support the Rock Band guitar yet.

Update: New in version 0.0.2 Now supports Rock Band guitar controllers


I made a script for the Logitech Cordless RumblePad 2. But the script can easily be expanded to include more presets. You need GlovePIE to run this script.
Read the readme for updated controls.]
How to use:
1. First run the script
2. Then th script is running press F1 to activate the gamepad controls
3. press F2 to disable them.

Controls:

  • Press right or left on the D-pad or move the left stick right or left: fly on the left or right line.
  • Right stick: move freely.
  • Press and move the Right stick: Look around.
  • Button 5 or 6 (LB and RB on Xbox): fly to the left or right side.
  • Button 1 (X on Xbox) or Button 7 (LT on Xbox): Z
  • Button 2 (A on Xbox) or Button 8 (RT on Xbox): X
  • Button 3 (B on Xbox): Space
  • Button 10 (Start on Xbox): Pause

Note: I will add more controller setups then I manage find out how some other controlers work.
« Last Edit: June 12, 2009, 04:40:23 pm by gike987 »

ViRUS

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3218
    • MSN Messenger - newvirus@live.com.ar
    • View Profile
    • Email
Re: GlovePIE gamepad script
« Reply #1 on: May 22, 2009, 08:56:58 am »
I think there's already an Addon using GlovePIE for joystick support, but you can't play DV with that one, so I think this would be appreciated by joystick users :D

I think it's time to update AHOAA, too...


Gamergull

  • Jr. Member
  • **
  • Posts: 59
  • Red Traffic Hunter
    • View Profile
    • Email
Re: GlovePIE gamepad script
« Reply #2 on: May 22, 2009, 11:19:05 am »
Very cool, it works great! I'll have to learn to go easy on the sticks, though.

Now, what if Audiosurf could be controlled with a racing wheel? :P

gike987

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: GlovePIE gamepad script
« Reply #3 on: May 22, 2009, 12:07:26 pm »
Very cool, it works great! I'll have to learn to go easy on the sticks, though.

Now, what if Audiosurf could be controlled with a racing wheel? :P
I'm planning to add a script for racing wheels. The only problem is that I don't own one so I can't test it. That’s why I try to look up what numbers the buttons have on different models on internet (not so easy to find).
For now I’m working on scripts for things that I own (Rock band guitar).

gike987

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: GlovePIE gamepad script
« Reply #4 on: May 22, 2009, 02:31:34 pm »
Ok if you own a gamepad, driving wheel or other input device. You could help me making scripts for them by posting some information.
Information to post:
1. The name of the product.
2. What buttons, axis and Povs everything is mapped to. (check this in the control panel).


Mapsking

  • Full Member
  • ***
  • Posts: 134
    • MSN Messenger - mapsking@yahoo.com
    • AOL Instant Messenger - mapsking1
    • Yahoo Instant Messenger - mapsking
    • View Profile
    • My YouTube channel
Re: GlovePIE gamepad script
« Reply #5 on: May 23, 2009, 02:41:12 pm »
This may be a foolish question, but is there a way to incorporate xpadder (free, and I could send it if needed) into this program, or perhaps use it in conjunction with it?  It is a free program that allows any gamepad controller to be used with any game, even ones that do not natively support it, and allows mapping of any button, mouse, mouse movements, combinations, etc. to any button on the controller.  It supports turbo, rumble pad, and so forth.

Just a thought.

Thanks, Mapsking
Thanks, Mapsking

gike987

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: GlovePIE gamepad script
« Reply #6 on: May 27, 2009, 01:40:19 am »
This may be a foolish question, but is there a way to incorporate xpadder (free, and I could send it if needed) into this program, or perhaps use it in conjunction with it?  It is a free program that allows any gamepad controller to be used with any game, even ones that do not natively support it, and allows mapping of any button, mouse, mouse movements, combinations, etc. to any button on the controller.  It supports turbo, rumble pad, and so forth.

Just a thought.

Thanks, Mapsking

I can't see reason to incorporate another program that try to do the same thing as mine. Also I don't like xpadder less options to configure things like mouse sensitivity and button delays.
Right now I'm working hard to make the mouse movement more smooth.

Mapsking

  • Full Member
  • ***
  • Posts: 134
    • MSN Messenger - mapsking@yahoo.com
    • AOL Instant Messenger - mapsking1
    • Yahoo Instant Messenger - mapsking
    • View Profile
    • My YouTube channel
Re: GlovePIE gamepad script
« Reply #7 on: May 27, 2009, 01:47:52 am »
This may be a foolish question, but is there a way to incorporate xpadder (free, and I could send it if needed) into this program, or perhaps use it in conjunction with it?  It is a free program that allows any gamepad controller to be used with any game, even ones that do not natively support it, and allows mapping of any button, mouse, mouse movements, combinations, etc. to any button on the controller.  It supports turbo, rumble pad, and so forth.

Just a thought.

Thanks, Mapsking

I can't see reason to incorporate another program that try to do the same thing as mine. Also I don't like xpadder less options to configure things like mouse sensitivity and button delays.
Right now I'm working hard to make the mouse movement more smooth.

I can understand where you are coming from, however, xpadder allows adjusting of both mouse sensitivity and button delays, so I'm not sure what you are talking about there, however, I never could get your program to work at all, with the exception of using the right stick as a mouse.  When in game, it just did absolutely nothing.  If there is something I need to do, by all means, please let me know, but unless you do, to me, the program is useless, as it doesn't work for some reason.

Thanks, Mapsking
Thanks, Mapsking

gike987

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: GlovePIE gamepad script
« Reply #8 on: June 12, 2009, 06:47:27 am »
I can understand where you are coming from, however, xpadder allows adjusting of both mouse sensitivity and button delays, so I'm not sure what you are talking about there, however, I never could get your program to work at all, with the exception of using the right stick as a mouse.  When in game, it just did absolutely nothing.  If there is something I need to do, by all means, please let me know, but unless you do, to me, the program is useless, as it doesn't work for some reason.

Thanks, Mapsking
Strange i have tested it in both vista and xp and it works for me. Are you using the glovePIE script or my new autohotkeyscript? The glovePIE script may be affected by a none standard keyboard layout but im not sure thats the problem as i haven't tested it yet.
Edit: I know what the problem is I deleted the fist copy of the script that included the ability to switch between using ASDF to move and arrow keys to move. making you unable to play dual vision. I will update it as fast as I can.
« Last Edit: June 12, 2009, 04:13:40 pm by gike987 »

synnie

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Re: AS Controllers (gamepad script)
« Reply #9 on: August 14, 2009, 09:39:53 pm »
Hi,

I've tried using this and it works fine so far EXCEPT for the right joystick. I don't know how to explain it, but imagine taking the controller and turning it clockwise and holding it in your hands. If you hold it like that, the joystick movements correspond to the ones on the screen.

Is there anything I can add in the settings.ini to fix this?

sp4rv13ro

  • Jr. Member
  • **
  • Posts: 98
  • Sparrow hawk
    • MSN Messenger - xcava86x@hotmail.com
    • Yahoo Instant Messenger - xcava86x@yahoo.com
    • View Profile
Re: AS Controllers (gamepad script)
« Reply #10 on: October 09, 2009, 12:58:22 pm »
Hi all!
I own a TechSolo® TG-30 Gamepad and it doesn't works.

Gracias :D
Originally Posted by Collision
«All those pusher and erazer folks suck, just collecting colours, real men dodge greys.»

My Audiosurf's Videos

lavacano201014

  • Hero Member
  • *****
  • Posts: 1762
  • We're an underground revolution working overtime.
    • ICQ Messenger - 431938899
    • MSN Messenger - thatotherguy370@msn.com
    • AOL Instant Messenger - lavacano201014
    • Yahoo Instant Messenger - lavacano201014
    • View Profile
    • Email
Re: AS Controllers (gamepad script)
« Reply #11 on: October 09, 2009, 03:14:28 pm »
Hi,

I've tried using this and it works fine so far EXCEPT for the right joystick. I don't know how to explain it, but imagine taking the controller and turning it clockwise and holding it in your hands. If you hold it like that, the joystick movements correspond to the ones on the screen.

Is there anything I can add in the settings.ini to fix this?

Change the axes around?

Green = listening, red = surfing

Mincus

  • Hero Member
  • *****
  • Posts: 2433
    • View Profile
Re: AS Controllers (gamepad script)
« Reply #12 on: October 10, 2009, 02:05:14 am »
Heh, this goes back to my point in this thread: http://www.audio-surf.com/forum/index.php/topic,5493.msg56968.html#msg56968
Some joysticks have the right stick axes oddly arranged, which is why Audiosurf would struggle to implement it natively.

As lavacano says, just switching them in the script should fix it.

I THINK the lines you need to change are:
Code: [Select]
mouse.DirectInputX = mouse.DirectInputX+45*joystick.z;
mouse.DirectInputY = mouse.DirectInputY+45*joystick.roll;

Just swap .z and .roll and it should work. But I've not tested it.

enticore

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: AS Controllers (gamepad script)
« Reply #13 on: October 10, 2009, 01:53:47 pm »
Why not just use XBOX360 Controller Emulator together with x360ce dinput8.dll ?

This will let your controller function as an xbox360 controller, which is natively supported in the game.
« Last Edit: October 10, 2009, 02:33:05 pm by Laserrobotics »

ViRUS

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3218
    • MSN Messenger - newvirus@live.com.ar
    • View Profile
    • Email
Re: AS Controllers (gamepad script)
« Reply #14 on: October 10, 2009, 02:28:56 pm »
both links are broken
« Last Edit: October 10, 2009, 02:33:19 pm by Laserrobotics »