[Gambas-user] A fine afternoon for a good rant

Benoît Minisini g4mba5 at gmail.com
Thu Feb 28 19:45:00 CET 2019


Le 28/02/2019 à 19:23, Benoît Minisini a écrit :
> Le 28/02/2019 à 18:51, Cedron Dawg a écrit :
>> I'm reaching frustration levels here.  This is a rant.
>>
 >> [...rant...]
>>
>> I'm going for a walk.
>>
> 
> Welcome to the world of programming.
> 
> Before reading "how to make components", did you read the wiki page 
> "compilation and installation", where it is explained how to compile and 
> install Gambas from sources? Apparently no.
> 
> You have to generate the "./configure" file first, by running 
> "./reconf-all".
> 
> See that page: http://gambaswiki.org/wiki/install
> 
> As for the joystick support, I thought that SDL would be enough. You 
> usually use SDL to make games.
> 
> Anyway, it could be a good idea to make a component that gives access to 
> libevdev.
> 
> As for your event management problem, no, you don't have to poll.
> 
> According to what I read in the libevdec doc, you just have to watch the 
> evdev file descriptor returned by libevdev_get_fd(), and then use 
> libevdev_next_event() in the watch handler.
> 
> As for adding a component in the source tree, it's a boring and ugly 
> work. Because it's based on autoconf & automake, and it's them that make 
> the process boring and ugly.
> 
> I can do it for you.
> 
> I strongly suggest to make a component with a C part and a Gambas part. 
> The C part will contain only helpers functions, and the Gambas part will 
> be the actual public interface of the component.
> 
> Regards,
> 

I have created a new branch named 'evdev', with a new void 'gb.input' 
component in it, so that you can start playing with it.

So checkout the 'evdev' branch, and make merge requests from it when you 
want me to look at your code.

Regards,

-- 
Benoît Minisini


More information about the User mailing list