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 Discussion / Multiple Joypads?!

Author
Message
DARKHALO2K
21
Years of Service
User Offline
Joined: 4th Sep 2003
Location: UK
Posted: 27th May 2007 21:43 Edited at: 27th May 2007 21:44
Hi there. I'm extremely sleep deprived at the mo, so forgive any lack of intelligence shown, but does anybody know if/how I can use more than one controller in a DBC program?
I have a splitscreen game on the go and want to have both players using the Xbox 360 USB joypads.
Any help would be greatly appreciated. Thanks!
Underworld 1020
21
Years of Service
User Offline
Joined: 2nd Mar 2004
Location: NY, USA
Posted: 8th Jun 2007 02:30
Its been a long time since I've coded in DB, but I believe you could use the PERFORM CHECKLIST FOR CONTROL DEVICES command to get all the names of the joysticks and then use the SET CONTROL DEVICE command to set which control you want to use. Then check to see if the user pressed any buttons. So I guess would have to check for input on joystick one and then check for input on joystick two, just keep switching back and forth. Maybe that helps you out.

Also I think someone made some extended commands for controllers/joysticks back a while ago...check around the fourms.

Login to post a reply

Server time is: 2025-05-29 03:55:21
Your offset time is: 2025-05-29 03:55:21