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.

Work in Progress / Joystick control

Author
Message
OSX Using Happy Dude
20
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 2nd Jul 2004 07:12
This is based more on Cleber de Mattos Casali's idea than an original plug-in by yours truely...

It does more or less the same this as (his?) - up to 16 joysticks can be read using the GLFW DLL, returning any number of axis and up to (presumably) 255 joystick buttons.

This plug-in (and the use of GLFW) should be regarded as temporary until Lee/Mike finally fix the joystick situation.


The place for great plug-ins and things.
Availiable : mySQL Interface plug-in.
DarkPhear
20
Years of Service
User Offline
Joined: 15th Oct 2003
Location: Brazil
Posted: 2nd Jul 2004 08:01
For now GLFW.DLL is pretty good solution. I have added functions to use it in the CodeBase. My Double Dragon Forever fangame is running fine with 3 joypads and no FPS decrease. DBPRO has a few problems reading from HID USB joypads (IE wrong axis readings, slow initialization). SET CONTROL DEVICE can't be used in the main loop because it's dramatically slow. Also using device name$ instead of device ID is impossible to workaround if you have two or more identical joypads.
Well, I'm always talking about this problems and I'm starting to feel really boring. Anyway, Lee told me he will consider the changes in joystick commands around U7 or U8, until then let's stick with GLFW.DLL

Cleber de Mattos Casali, game programmer.
DarkPhear is a full freeware RPG developed by me. You can download it and some game demos for free at my page: http://darkphear.cjb.net
SpecTre1
21
Years of Service
User Offline
Joined: 24th Feb 2003
Location: United Kingdom
Posted: 2nd Jul 2004 11:02
Where do you get the plugin from m8 as I can't see it on your site?



New to DBPro comin from AMOS on the Amiga!
OSX Using Happy Dude
20
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 2nd Jul 2004 16:55
Its availiable now.

Quote: "SET CONTROL DEVICE can't be used in the main loop because it's dramatically slow. Also using device name$ instead of device ID is impossible to workaround if you have two or more identical joypads.
"

Indeed - I told Lee about this limitation ages ago. So, he doesn't want to fix it in P6 then ? Rather a shame...


The place for great plug-ins and things.
Availiable : mySQL Interface plug-in.
SpecTre1
21
Years of Service
User Offline
Joined: 24th Feb 2003
Location: United Kingdom
Posted: 2nd Jul 2004 21:07
Hmmmmm.........

Either I'm super thick or it isn't on site, can't see it anywhere on your site m8, r u sure it's on there?

New to DBPro comin from AMOS on the Amiga!
OSX Using Happy Dude
20
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 2nd Jul 2004 23:14 Edited at: 2nd Jul 2004 23:16
Yes, I'm quite sure its there...

Its called UserControl by the way. Originally it was going to have the mouse bits in, but they didn't work.


The place for great plug-ins and things.
Availiable : mySQL Interface plug-in.
SpecTre1
21
Years of Service
User Offline
Joined: 24th Feb 2003
Location: United Kingdom
Posted: 3rd Jul 2004 00:15


Where is it then??? Think I'm goin crazy but thats all I see in the code bit.

New to DBPro comin from AMOS on the Amiga!
OSX Using Happy Dude
20
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 3rd Jul 2004 02:03
So, your not seeing :



then ?


The place for great plug-ins and things.
Availiable : mySQL Interface plug-in.
SpecTre1
21
Years of Service
User Offline
Joined: 24th Feb 2003
Location: United Kingdom
Posted: 3rd Jul 2004 02:28


LOL, you must have just put that on!!

Check above as I cpied and pasted that section off your site

Downloaded now anyway, thanks m8

New to DBPro comin from AMOS on the Amiga!
SpecTre1
21
Years of Service
User Offline
Joined: 24th Feb 2003
Location: United Kingdom
Posted: 3rd Jul 2004 02:30
I get variable "peekf" does not exist in program???

New to DBPro comin from AMOS on the Amiga!
OSX Using Happy Dude
20
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 3rd Jul 2004 03:22
You need my memory plug-in.

And no, the sites been like that since 8am this morning, when I updated it...


The place for great plug-ins and things.
Availiable : mySQL Interface plug-in.
SpecTre1
21
Years of Service
User Offline
Joined: 24th Feb 2003
Location: United Kingdom
Posted: 3rd Jul 2004 04:13
Downloaded but can't seem to get it working??

Nothing happens, got Thrustmaster joypad that is directX compatible and just plugs in through usb port no need for drivers etc it said??

New to DBPro comin from AMOS on the Amiga!
OSX Using Happy Dude
20
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 3rd Jul 2004 08:46 Edited at: 3rd Jul 2004 08:46
If you've got multiple joysticks, it will choose the first one. The first one probably not being the joystick your using.

If you've only got one joystick and you cant see the values change as you move the POV HAT controls around, then its possible its doesn't work for that control pad - unfortunately there's nothing I can do about it.

On mine, it will only work with the HAT control and not the D-Pad.

Make sure you have the GLFW.DLL in the same place as the executable.


The place for great plug-ins and things.
Availiable : mySQL Interface plug-in.

Login to post a reply

Server time is: 2024-06-26 14:59:28
Your offset time is: 2024-06-26 14:59:28