Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Guide to using an wired Xbox360 Controller with DBPro

Author
Message
Xenocythe
21
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 26th May 2008 05:41
This guide will get you started using a 360 controller in DBPro with much simpler results.

It's a modified code of 'Elite Gamings' original map out for the wired 360 controller. Credit to him!

Notes:
Some input, due to math, is limited to a 9 where it should be 10 on the joystick x or y for the right joystick. Not a big deal, but yeah.



Step 1
Download and install this driver from Microsoft.com
http://www.microsoft.com/downloads/details.aspx?FamilyID=0e989b12-576b-42f2-b7c1-2a17ce25188b&DisplayLang=en

Step 2
Plug your controller into the USB input in your computer.
Go through the new hardware installation as usual, choosing 'Install Hardware Automatically' and eventually the hardware will find itself and install

Step 3
Copy the following commented code into DBPro and check if the variables are read through the joystick commands. They should, and if it works, read through the code and variable set up so you know how to take control of the controller input.


If, for some reason, the code does not work correctly and you dont see any input through variables in the program when run, post here and I will look into it.

From here on out it should be very easy to use this code to take input from your wired xbox360 controller with DBPro.


Have fun,
Xeno

3.11 We do not tolerate posts made for the purpose of putting down another forum member, group of members, religion, our company, our staff or any of our moderators, past or present.
bergice
19
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 26th May 2008 12:27
I am using the Xplorer guitar for my Guitar Hero game


Dont delete my sig mods, it is 600X120...
Slash!
Elite Gaming
23
Years of Service
User Offline
Joined: 10th May 2003
Location: Isle Of Wight, UK
Posted: 27th May 2008 23:02
glad to see my code was useful for someone. I'll have to try this out with GTRacing and see what results i get.

Cheers!
Xenocythe
21
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 28th May 2008 01:32
Hehe, yeah, thanks for your original map out I found that this was actually possible

How is GTRacing coming along? It would be awesome to see xbox controllers used to play it!

3.11 We do not tolerate posts made for the purpose of putting down another forum member, group of members, religion, our company, our staff or any of our moderators, past or present.
Elite Gaming
23
Years of Service
User Offline
Joined: 10th May 2003
Location: Isle Of Wight, UK
Posted: 28th May 2008 01:42
Its coming on all right, although the vehicle physics are causing plenty of headaches. Its currently using xbox 360 controller, although its in development using a keyboard so that the whole community can test it when i get the next demo ready, rather then those with just xbox controllers, but there will be the option to change the controller.

Anyway, enough of hijacking your thread, glad you found the mapping useful. There was a DLL made a while ago for the Xbox360 pad, but i couldn't get it to work.
Xenocythe
21
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 28th May 2008 06:06
Yeah, good luck with the game.

I think raven created the DLL, but I'll just stick with this

Anyone else find this useful?

3.11 We do not tolerate posts made for the purpose of putting down another forum member, group of members, religion, our company, our staff or any of our moderators, past or present.

Login to post a reply

Server time is: 2026-06-10 03:27:00
Your offset time is: 2026-06-10 03:27:00