xbox360 controller and 3dgs

Posted By: not_me

xbox360 controller and 3dgs - 04/12/07 01:49

how do you program a xbox 360 controller to work with 3dgs games(possibly using the c-script editor). is there a special program i need. or can i program the game to the controller from within 3dgs. just curious about this. i wanted to be able to test my games with my 360 controller

thanks
Posted By: xXxGuitar511

Re: xbox360 controller and 3dgs - 04/12/07 03:08

You need a dll to do this, c-script isn't powerful enough.

I think there's one floating around here somewhere, do a forum search for it...
Posted By: er_willy

Re: xbox360 controller and 3dgs - 04/12/07 09:14

xbox360 controller is a simple 10 butons/4 analogic pad, 3dgamestudio work perfet wiht he. look the manual.
Posted By: Dutchie666

Re: xbox360 controller and 3dgs - 04/12/07 09:34

you can just use the joystick functions for it...
i tried it, it works
Posted By: FoxHound

Re: xbox360 controller and 3dgs - 04/12/07 11:02

Use the DLL that is out there. There are functions on the controller that don't work with 3dgs as is. I've done this with "TOWER" and it works just fine.
Posted By: Doug

Re: xbox360 controller and 3dgs - 04/12/07 19:40

If you have XP or Vista, just plug it in and download the latest updates from Microsoft. Everything works.
Posted By: William

Re: xbox360 controller and 3dgs - 04/13/07 10:29

Quote:

If you have XP or Vista, just plug it in and download the latest updates from Microsoft.




Which update is this? I tried downloading http://www.microsoft.com/hardware/gaming...20for%20Windows, installed it, but when trying in A6 it still wont detect it. Unfortunately, I only have access to 56k, so windows automatic update doesn't work(grab manual updates every so often when i'm at a high speed connection). Also, I thought A6 didn't work with xinput?

Edit: It's a bit odd, I went into control panel, game controllers, selected "advanced" for my 360 controller and set it as the primary controller to work with "old devices". Now it seems to work, although, the button layout is completely different from my other joystick.

btw - with my other joystick, I had to change something in it's software so it acts as joy_1 and not 2. Weird how this works, but I always thought that xinput was stopping the 360 joypad from working with A6. I wonder how to get rumble to work, is this a feature in A7 with lite-c?
Posted By: Doug

Re: xbox360 controller and 3dgs - 04/13/07 17:53

Quote:

Now it seems to work, although, the button layout is completely different from my other joystick.




Yes, the Microsoft standard is almost always different then the rest of the world.

Features such as rumble and independent triggers (right now left and right triggers act on the same axis) are not supported without using xinput. I'm not sure if JCL plans on using xinput for A7 (sounds like a feature request ).
Posted By: William

Re: xbox360 controller and 3dgs - 04/14/07 01:15

Yeah, the option to use both Xinput and Directinput without external dll's would be nice for A7. Also, I guess, the ability to use the rumble feature of Directinput as well.

If anyone is interested in DocJoes plugin, the thread is here:

http://www.coniserver.net/ubbthreads/showflat.php/Cat/0/Number/640549/page/0/fpart/1/vc/1

I was a bit mixed up at the time, thinking that this wasn't fully supported with A6 yet and thought you were adding Xinput or something.

But now I've done some more testing, and found it works fine with the latest beta(pre-A7). Just be sure to have the Microsoft "xinput9_1_0.dll" either in your work folder or your "windows/system32" folder. If you don't have it, any dll calls you'd make thru your scripts will produce errors upon startup. The user will have this dll already on their computer if they install the 360 controller drivers. Basically, if you have this dll installed, and you have your script callings it's functions anywhere, but you don't have a 360 controller installed or this Microsoft dll in your work folder, your game will crash. So don't call any functions from the DocJoe dll unless your sure the user has the Microsoft dll!

Heres how I think i'm gonna go about adding full 360 controller support in my game:

- Use A6 native commands for DirectInput controllers.

- If the user has a 360 control, they select a certain check box in the option screen, otherwise it will not work. In the scripts I use native A6 commands for all buttons but the back left and right shoulder buttons, the joysticks(cause otherwise no deadzone), and the rumble. These alternate scripts only run if the 360 controller is enabled in the option screen. Basically, if I don't do this, and the user for whatever reason doesn't have that dll above, the game wont crash every time it starts. Also, the layout has to be different for the 360 controller, this option would change that too.

I wonder if Microsoft allows distribution of this .dll file in my application? This of course would make things easier if they do.
Posted By: chaotic_dragon

Re: xbox360 controller and 3dgs - 04/14/07 03:16

i know a guy who does software programing who i can ask about the whole situation if use like...i asked him a few questions bout it and he said a dll should work and that standard c script will work but it would be best using other forms other than c script.

sorry for just barging in like this lol if i do not make any sense just tell me so ok lol.

thanks, chris
Posted By: not_me

Re: xbox360 controller and 3dgs - 04/19/07 02:47

so how would i program the controller to an a6 game? what would a snippette of teh code look like?
Posted By: chaotic_dragon

Re: xbox360 controller and 3dgs - 04/19/07 03:00

not sure ill ask him next time i see him or send him an email ok ill get you details as soon as possible
Posted By: Blink

Re: xbox360 controller and 3dgs - 05/17/07 22:32

does this plugin really work, i purchased an xbox 360 controller just for this. how do i implement it, i really didnt understand the read me file or the manual. call me an idiot, help please?
Posted By: Blink

Re: xbox360 controller and 3dgs - 05/21/07 04:06

Ok, i got it to work with 3dgs, how do i make the view stop spinning?
Posted By: Blink

Re: xbox360 controller and 3dgs - 05/21/07 22:52

anyone? lol, i will wait...lol!
Posted By: Blink

Re: xbox360 controller and 3dgs - 05/30/07 02:28

has anyone got it working yet?
© 2024 lite-C Forums