Joystick Class
Posted
#1
(In Topic #809)
Regular

It appears the class he used was originally written as a C program and then translated to Gambas and then modified to work with jsbsan's program. I have since simplified the code and added a couple new events for easier integration into other projects.
I have also written a small program to demonstrate how to use this class. When the demo starts, it will try to connect to joysticks /dev/input/js0 and /dev/input/js3, notifying the user if a device is missing before continuing on. If js0 connects, then it will monitor button and axis states.
Posted
Guru

might be worth a look…
Files · gb.joystick · Gambas / gambas · GitLab
Posted
Regular

So I taking the 'advise' from your signature, "If at first you don't succeed , try it differently."
I'd gladly close this off and discourage anyone from building a program based on this if that pull request gets merged into master. But until then, we need something that people can share and use within an unaltered Gambas environment.
Posted
Guru

My guess would be development stopped at gambas hq due to a lack of interest.
if you have a working easy to use class i'd suggest getting on the gambas mailing list and see if anyone thinks it's worth inclusion as it seems they just gave up on it.
Thanks for sharing.
I'm sure people will find it useful and like you say , a whole lot easier than trying to get the old/stale gambas branch of yesteryear
Posted
Regular

I did some more playing around with the class I uploaded and for some reason its not letting me create an instance at run time. I end up loosing the ability to click things with the mouse. But dropping an instance onto a form works well. So this is not a great solution in my opinion. But its a start.
Maybe I should try to sign up to the Gambas bug tracker. Maybe I could nudge someone into looking at it again.
I find it frustrating that the bug tracker system is not read only for anyone not logged in. This is one of the only projects I've come across that does this.
Posted
Regular

1 guest and 0 members have just viewed this.


