[Gambas-user] Gambas class to read a joystick

Benoit Minisini gambas at ...1...
Mon Mar 3 16:53:59 CET 2008


On lundi 3 mars 2008, Rob wrote:
> On Monday 03 March 2008 08:29, Benoit Minisini wrote:
> > So, in File_Read, you must read the file descriptor by blocks:
>
> Thanks, I might as well write the joystick component in Gambas then.
> How do you think it should be named?
>
> Rob
>

Mmm, good question... 

Maybe you should first read the documentation on /dev/input in the 
Documentation directory of the linux kernel sources. Not to implement all its 
features, but to see what the specific joystick part has in common with 
other /dev/input devices, so that your component could easily be extended to 
support other devices.

Then this component is linux specific. At the moment, the interpreter does not 
tell anything about the underlying OS. Maybe it should? With an 
implementation of #ifdef / #endif in the gambas compiler? For the 3.0 version 
then...

So I suggest something like "gb.linux.joystick", to tell that is really linux 
specific.

Regards,

-- 
Benoit Minisini




More information about the User mailing list