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 input devices

Author
Message
Fresser
19
Years of Service
User Offline
Joined: 16th Aug 2006
Location:
Posted: 15th May 2011 21:58
I [think that I] can recall using more than one input device using DB Classic, but that was years ago when if I used a variable I was all "wuts one of those hmm."

Anyway I now notice that if I try to use more than one input device, it tells me that I should stop putting a parameter in joystick y(where a parameter would be). When did this become an issue? Was there a bug, or was it just not included? I saw older threads searching for a solution that spider-webbed back to even older threads that don't exist anymore so that information is lost forever.

What I wanted to do was to use my two Logitech ATK3 joysticks to control one player. I looked around and even used a less-than-legitimate copy of xpadder (complete crap) and had to get rid of it because of the whole uselessness factor. The way I wanted this to work is that the left device x-y moves, right device x-y looks, d-pad is simulated by the buttons on the left joystick and the standard diamond-formation buttons would be emulated by the buttons on the top of the right joystick.

Is there software that I can use to turn these two joysticks into one? Maybe there's a device that takes the input from both and translates it into data for one device? I don't know. It would just be really fun to do this if I could and have a game based on these controls.

Ich liebe Hundepfeifen; du hast wohl keine gehört.
Jimpo
21
Years of Service
User Offline
Joined: 9th Apr 2005
Location:
Posted: 15th May 2011 22:21 Edited at: 15th May 2011 22:25
JoyToKey is a free program that can convert input from multiple joysticks into keyboard input that your game can read. http://www.electracode.com/4/joy2key/JoyToKey%20English%20Version.htm

Also, DBPro is capable of reading input from multiple joysticks. My Dego rpg game works fine with up to 4 controllers. I'm sure there are some tutorials on this board for using multiple joysticks in DBPro.

IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 15th May 2011 22:36
DBPro itself can handle up to 8 joystick style controllers.

Here's a test program I wrote during my last update to the input plug-in:


It configures itself to up to the first 8 controllers it finds. You switch between controllers using the number keys, and the letters on the row from q to o to activate different force-feedback effects.

Login to post a reply

Server time is: 2026-07-10 16:13:01
Your offset time is: 2026-07-10 16:13:01