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 / Problem with SET CONTROL DEVICE and using mutliple gamepads/joysticks at once. Older threads seem to suggest a command that does not exist...

Author
Message
Omega gamer 89
17
Years of Service
User Offline
Joined: 10th Sep 2007
Location: Pittsburgh, PA
Posted: 10th Nov 2024 20:20 Edited at: 11th Nov 2024 01:07
Hi! So Im currently trying to set something up so multiple players can play at once using gamepads/joysticks. Ive looked through the help file documentation, and searched here on the forum, and the forum threads seem to indicate to use commands that... dont appear to exist? There are multiple other threads asking about using multiple joysticks, but they all seem to say you need to use SET CONTROL DEVICE INDEX and/or SET CONTROL DEVICE NAME but the thing is... neither of these commands appear to be valid. DBPro only seems to recognize "SET CONTROL DEVICE" and not "SET CONTROL DEVICE INDEX" or "SET CONTROL DEVICE NAME." Additionally, SET CONTROL DEVICE only takes one parameter; a string for the device name, while other threads are saying you need to give it two parameters; a name and an index?

How am I meant to set this index when the command will not take that parameter? Any general advice for how to handle multiple joysticks active at once is appreciated as well.

I also saw people saying there was a plugin you can buy (multijoy) but the site appears to be gone now.
Derek Darkly
13
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 11th Nov 2024 01:53

I ran into this same issue before and gave up..Lol
Out of curiosity, when would you need to use 2 controllers on 1 machine simultaneously, other than for testing purposes?

You may want to use multiplayer commands and run your game in 2 windows or on 2 computers as an alternative
Send your parents to noisy sprite demo hell... enter the D-Zone
Omega gamer 89
17
Years of Service
User Offline
Joined: 10th Sep 2007
Location: Pittsburgh, PA
Posted: 11th Nov 2024 02:25 Edited at: 11th Nov 2024 02:30
Ah so I may just be out of luck

Its couch co-op so it kinda has to be 2 controllers running in the same program. The part that sucks is I only need it use multiple controllers at once very rarely, for one section where the players have to try to buzz in first to solve a puzzle. For everything else, passing the same controller back and forth (or just using mouse and keyboard) works just fine. The way I currently have it handled, just for development, is that p1 buzzes in with left shift, p2 buzzes with right shift, and P3 buzzes in with space bar. It works but it... kinda sucks as a control scheme. So much better if I can just have each player have their own controller.
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 20th Nov 2024 14:52
I remember running into this issue about 15 years ago. I decided to buy the multijoy plugin, which worked great! So I can recommend it.

Login to post a reply

Server time is: 2024-11-21 06:28:50
Your offset time is: 2024-11-21 06:28:50