Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
4-button Joystick Press Detection for GFXlib 2 (updated!!).
#8
To Deleter:

Hello and a real pleasure to have you in this. Big Grin

To be honest here, I do not know exactly what caused only the one joystick button to be pressed instead of four in your neck of the woods. If you are thinking that it could probably be that you are using the wrong driver, chances are you are apparently correct ( Sad ).

Possibly the best way to make at least the first four (4) buttons work properly on your joystick/gamepad is to find the right drivers for that specific thing you are using, Deleter. Some good places for you to start would be for you to go straight to these following URLs:
It is recommended that whatever driver you download at all, please run it through a virus-checker such as Norton Antivirus or McAfee VirusScan or AVG before you try any one driver, ok? Smile !

Alternatively, I have gotta show you a keyboard-to-joystick emulator that I have found on the internet yesterday. Just keep reading, pal!! Big Grin



Next, I go over to you, SJ Zero:

Quote:Ok, now let's see full support for my 16 button x-box controller. Wink

Well man, as much as I love to do that in my tests, I can only do no more than support just the presses of the first four (4) buttons per controllers, sad to say. Sad You know why? Because if I were to implement the pressings of more than the first four joystick/gamepad buttons all at once, then anywhere between buttons 1-4 would conflict upon pressing a button number higher than 4, disabling either of them until you let some of the higher-numbered buttons go. Not easy for me to explain, SJ Zero, but I have tried some serious experimenting with the buttons and found all of that out for myself as the tests were first being programmed. Smile

Like I have just recently said to Deleter in this very reply, there is a keyboard-to-joystick emulator indeed there that I must show you and him (and anybody that is interested, too! Cool ). And I will safely say right now that it is called PPJoy v0.83 by none other than Deon van der Westhuysen. It is a *great* piece of software here that will compliment you richly on my button tests that I just gave you from the top of this thread, and a possible download of PPJoy begins at: ......and keep in mind though that the software is free for personal use, too. :wtnod:



And finally, to you, MystikShadows:

Hey man, thanks a lot for your wonderful comment about my tests here!! :king:=b ! I am sure very much that they would be *quite* some useful help for adding some quality joystick button support and stuff to GFXlib 2 and FreeBASIC (v0.14 or newer). I am also sure that four working button presses for each connected PC-based joystick/gamepad would suffice in helping the FB programmer add some arcade- or console-quality support to their new games, you know? Wink

In addition, I plan on using the tests myself for one of the game projects that I am currently working on, as well as potentially the game Frantic Journey (FJ), too. Hang on tight as we rock! Big Grin



Deleter, dumbledore, SJ Zero, and MystikShadows, thank you all so much for your wonderful time today. Catch you all again soon. d=Smile=b



TAKING CARE OF SOME BUSINESS TODAY,

[Image: file.php?id=32]
Adigun Azikiwe Polack
One of the Founders of “Aura Flow” ::: Continuing Developer of “Frantic Journey”
Current Developer of “Star Angelic Slugger” ::: Webmaster of the “AAP Official Projects Squad”
Original Creator of the “The New FreeBASIC 8-Bit Palette Machine”



UPDATE (from July 3, 2005 at 12:28am EST): I have some AWESOME news for you, people: I have just now successfully upped the ante on this test to all 16 joystick/gamepad buttons, because all of them now work because of such excellent advice to me by DrV and Jofers that was worth taking!! (I *did not* even think that the button-testing undertaking would be successfully mastered further here, but it DID!! Big Grin ! ) This latest shot shows up to 16 buttons in action on four (4) controllers simultaneously:

[Image: file.php?id=103]

For a download of my newest version here, please go back to the very top of this thread where I have just placed “Update #2” there, alright? Thanks!!!

(And by the way, SJ Zero, because of the update, your dream about the support of all 16 buttons has finally came true right here. For real!! d=Big Grin=b ! )
url=http://dhost.hopto.org/aapproj/][Image: file.php?id=194][/url]
Your *official* home of the FreeBasic GFX Demo Central, now holding over 150 FB graphics demos so far!!! Big Grin !
Reply


Messages In This Thread
On that note, let’s deal. ^_-=b - by Adigun A. Polack - 07-02-2005, 10:30 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)