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

Author
Message
Dark Dragon
19
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 18th May 2010 00:45
Hi all,

Scratching my head over this one. Simple question - does anyone remember a Plugin for DBpro that supported multiple joypads. I'm not talking about Multi Joy, I need a freeware. I've searched the forums..........and i remember back when i had no DBpro, i saw it and wanted it......but i forgot the name, so actually searching is kinda useless.........Can anybody help?

The Viking
17
Years of Service
User Offline
Joined: 21st Oct 2008
Location: Asgard
Posted: 18th May 2010 04:57
The only one I have seen is for use with the XBOX 360 controllers, which allows up to 4. Other than that, you CAN do it with standard DBPro code, but it'll kill the FPS in a second...

www.myspace.com/norseblod
Visigoth
21
Years of Service
User Offline
Joined: 8th Jan 2005
Location: Bakersfield, California
Posted: 18th May 2010 05:35
working on that very idea now, using Todd Riggins xbox 360 dll.

check out his WIP thread:

http://forum.thegamecreators.com/?m=forum_view&t=155264&b=8
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 18th May 2010 15:42
DBPro now supports up to 8 controllers - check out the projects in your DBPro installation directory under VersionHistory\upgrade7_4_betafiles\Test Code\DBProInputDebug

TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 18th May 2010 21:25
@ DD

Multijoy is seriously worth the money. I bought it for MegaMashMothers, and the plugin can support up to 255 controllers, each with 255 buttons, 8 hats, 4 joystick axises and 4 D-pads. (Wow, imagine a controller with THAT).

Another great thing about it is it doesn't work with the joystick names to choose the devices, but the USB index. I had the problem where I had 2 joysticks with the exact same name, and DBP was not able to select the second one. But this plugin could.

Plus it includes different commands like wrap functions and other mathematical functions, all written in highly optimized assembler.

I recommend it, it only costs 10$...

TheComet

IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 19th May 2010 00:29
Quote: "I had the problem where I had 2 joysticks with the exact same name"

Fixed in 7.4 last year.

I've had no problems with the DBPro commands with identical controllers. I had each one individually detectable/selectable, and with each working correctly with force feedback.

Dark Dragon
19
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 19th May 2010 03:09
@TheComet

No money, thats all. Yes even $10.................

Quote: "DBPro now supports up to 8 controllers - check out the projects in your DBPro installation directory under VersionHistory\upgrade7_4_betafiles\Test Code\DBProInputDebug

"


Guess it's time to update yet again........I'll give this a spin, then if that doesnt work, i'll have to make 10 papers and get a paypal......

Visigoth
21
Years of Service
User Offline
Joined: 8th Jan 2005
Location: Bakersfield, California
Posted: 19th May 2010 10:35 Edited at: 19th May 2010 10:36
sorry if this is a dumb question, but, what kind/brand of gamepad is most common on pcs?
I was searching around online at like Egghead and stuff, and, there doesn't seem to be alot of choices.
I'm serious. I want to know what is the hot setup for pc gamepads.
What is the one or two that if anyone had, they most likely would have.
I saw alot of wheels and joysticks, but gamepads didn't seem so popular.
=PRoF=
23
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 19th May 2010 11:27
@visigoth
my last 4 gamepads have been very similar to PS2 controllers. (12 buttons, 2 analogues and a dpad), altho only cheap ones.

TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 19th May 2010 17:57
I think that DD is referring to multiple Joypads as more than one joypad being used in game at the same time, and I don't remember DBP's built in commands being that fast for that...

TheComet

IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 19th May 2010 23:41
Originally, DBPro's commands would allow you to have one joystick active at once, and you could slowly switch between them using SET CONTROL DEVICE.

However, it hasn't been like that for quite some time, but unfortunately, it seems that these changes are pretty secret, as the latest help files are not the ones that I sent to Lee:

- In a late version (7.?), Lee added the SET CONTROL DEVICE command which allowed you to maintain an array of 8 joystick devices and switch between them at will. It had problems with the force feedback, and differentiating between multiple controllers with the same name.

- In 7.4 I enhanced the system to allow force feedback to work on every device, and to allow the user to select multiple devices into these slots whether they had the same name or not - Amongst other things, I enhanced the PERFORM CHECKLIST FOR CONTROL DEVICES by adding checklist value B, and enhanced the SET CONTROL DEVICE to allow you to use this value to differentiate between devices with the same name.

Seriously, check out the code that I posted the location of above, and see how easy it is to have up to 8 devices active at once - in this case, the code is the documentation, but you should find it easy enough to follow.

Dark Dragon
19
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 22nd May 2010 18:58
Quote: "Seriously, check out the code that I posted the location of above, and see how easy it is to have up to 8 devices active at once - in this case, the code is the documentation, but you should find it easy enough to follow."


Will do as soon as I get home!
Thanks.



And Game Pad Pro is popualr round here.

Jimpo
21
Years of Service
User Offline
Joined: 9th Apr 2005
Location:
Posted: 22nd May 2010 19:24
Yeah, IanM is right. Dego works perfectly with multiple joysticks without taking a hit to FPS, and it is all done using built in commands. Now if only it works with the 360 controllers rumble.

Dark Dragon
19
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 23rd May 2010 00:36
HEY! ITS JIMPO!...............lol.


IanM, The examples only show them one at a time. I need them going at the same time.............. would i just switch to another controller during my loop like:





Or what?

IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 23rd May 2010 00:43
Yes, that's right - just use the SET CONTROL DEVICE INDEX to switch between them.

The example code uses keypresses to switch between controllers, but you can do any way you want to, including hard-coding the index numbers if you want.

Dark Dragon
19
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 23rd May 2010 00:53
Ah, Ok. I see..........Not to sound rude, but it should have taken at the most, like till version 3 of DBPRO to implement this......But THANK YOU, I was kind of scared I'd have to spend some money(and first, I'd have to make it somehow.....). I am, indeed, very cheap.

Login to post a reply

Server time is: 2026-07-25 14:17:47
Your offset time is: 2026-07-25 14:17:47