[Implemented] multiple joysticks

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
J. Baker
Addict
Addict
Posts: 2181
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

[Implemented] multiple joysticks

Post by J. Baker »

Just as the subject says.
Last edited by J. Baker on Mon Apr 23, 2012 4:34 am, edited 1 time in total.
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

I 2nd this, I have a bomberman type clone that requires up to 8 players on a single PC, and I have 8 controllers to test it out (each controller with 10 buttons...)
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

shanarra, i doubt that is a valid directx config, or is it? (in that case: impressive)
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

It is, directx has no limits on the number of buttons per joystick, nor the number of joysticks. Or at least windows does not :) I have this coded in VB and its working nicely. Couldnt fully port it over to PB due to this. ah .. limitation of PB.

Besides it works wonderfully when you hook your computer to your entertainment system (TV+sound system). Then you get a big screen TV and nice sound to play the game, not to mention lots-o-buddies.

Besides they are actually gamepads (PB calls them joysticks?!?!) with 10 buttons, which you can buy via price watch for $7 a pop. (USB)
User avatar
J. Baker
Addict
Addict
Posts: 2181
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Post by J. Baker »

Ah yes, I prefer the gamepad over the joystick. Joystick reminds me of the commodor 64.
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

well its different. I have a gamepad, but also a logitech joystick, wich i couldnt live without in some games.
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

haven't used joysticks for a long time, but i've been playing packman and alien breed lately, and i miss the accuracy of my good old arcade competition pro joystick...
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
User avatar
griz
Enthusiast
Enthusiast
Posts: 167
Joined: Sun Jun 29, 2003 7:32 pm
Location: Canada

Post by griz »

The Pure Basic manual states :
PureBasic provides a full access to joysticks plugged to the computer. It supports standard joysticks upto 8 buttons. It use the DirectX technology.
I can detect all 10 buttons on my Logitech Rumblepad 2.

As there is no current support for multiple joysticks, does anyone know of a workaround for the meantime? I believe Pure Basic will support multiple joysticks at some point. I can only access one of the two analog sticks on my aforementioned joystick for example. How can I access the other?
User avatar
J. Baker
Addict
Addict
Posts: 2181
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Post by J. Baker »

For now, API.
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
User avatar
griz
Enthusiast
Enthusiast
Posts: 167
Joined: Sun Jun 29, 2003 7:32 pm
Location: Canada

Post by griz »

For now, API.
That's true. It keeps development going in the meantime!
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

*bump* and waiting ...
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

hum...
User avatar
nco2k
Addict
Addict
Posts: 1344
Joined: Mon Sep 15, 2003 5:55 am

Post by nco2k »

i second the request. :)

c ya,
nco2k
If OSVersion() = #PB_OS_Windows_ME : End : EndIf
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Post by Joakim Christiansen »

:D
hum... :lol:
User avatar
J. Baker
Addict
Addict
Posts: 2181
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re:

Post by J. Baker »

griz wrote:I can detect all 10 buttons on my Logitech Rumblepad 2.
I must have overlooked this sentence originally. So PureBasic does support more then 8 buttons? My gamepad only has 8, so I can not verify. Anyone else?
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
Post Reply