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.

Dark GDK / Controller Problem.

Author
Message
SxyGuy
19
Years of Service
User Offline
Joined: 28th Aug 2005
Location:
Posted: 18th Oct 2005 01:10
I'm creating a video game that's capable of reading in and using controllers. What I want to know is how do you switch between controllers? DarkSDK will only read in one controller. DarkSDK will only read the inputs of the default controller. DarkSDK has a function "dbSetControlDevice ( char* szDevice )" to switch between controllers, but, that function takes in as inputs, the name of the controller. My two controllers are exactly the same type and brand, therefore have the exact same names. Therfore, I've used the "dbSetControlDevice" function, but since both of my controllers have the same name, it doesn't switch between the controllers; it always use one as the default controller and the other, it'll never switch to. So, I just want to know how I'll be able to switch between my two controllers. The game is a two player game so I need to be able to read in inputs from both controllers, simultaneously, if I can.
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 18th Oct 2005 10:29
Your going to have to use an alternative method - I believe there should be a OpenGL joystick reading system somewhere that will help

Come to the third DarkBasic Pro Sci Fi Con - Be there and be square
Blog:http://spaces.msn.com/members/BouncyBrick/
Web Site:http://www.nicholaskingsley.co.uk
MiR
21
Years of Service
User Offline
Joined: 13th Jul 2003
Location: Spain
Posted: 18th Oct 2005 17:10
I use glfw. As far as I can tell it works perfectly fine with DGDK. You just have remember to call glfwTerminate(); before finishing the program. Very simle to use aswell.

My signature has been erased by me because it's LARGE.
Thank you for the votez!1!
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 18th Oct 2005 17:14
Thats the one I was thinking of...

Come to the third DarkBasic Pro Sci Fi Con - Be there and be square
Blog:http://spaces.msn.com/members/BouncyBrick/
Web Site:http://www.nicholaskingsley.co.uk
SxyGuy
19
Years of Service
User Offline
Joined: 28th Aug 2005
Location:
Posted: 18th Oct 2005 20:28
Thanks a lot you guys. I'll give GLFW a try then.

Login to post a reply

Server time is: 2024-11-19 02:36:45
Your offset time is: 2024-11-19 02:36:45