[Gambas-bugtracker] Bug #1537: A candidate for a a GamePad/Joystick native component

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Thu Feb 28 13:29:04 CET 2019


Comment #2 by Cedron DAWG:

Please hold off on doing any more than inspecting this, and perhaps ensuring compilability.

The GB.Watch mechanism is probably not going to work in this case.  I had trouble with the "select" in my test program and now I think it is due to EVDEV itself watching the file and queuing events withing itself, unlike joydev in which you read directly from the file descriptor.

The "ReadEvent' routine (the first in the file) needs to be called on a polled basis.  How should that be done?  Is it:

GB.Hook( something )

The current GB.Watch is on line 372.


In line 333, should the newly created string be GB.Free'd after adding it to the array?


More information about the Bugtracker mailing list