Re: [Gambas-user] how to flush a process stream

2011-04-01 Thread Benoît Minisini
> Pls report experiences with the use of the structures. > I want to use them in parts of my project too. > > Regards, > Ron. Why do everyone want to use structures? They are there for interfacing with functions written in external shared libraries written in C mainly. You should use classes ot

Re: [Gambas-user] how to flush a process stream

2011-03-31 Thread Ron
Pls report experiences with the use of the structures. I want to use them in parts of my project too. Regards, Ron. Op 1 apr. 2011 00:51 schreef "Kevin Fishburne" < kevinfishbu...@eightvirtues.com> het volgende: -- Create

Re: [Gambas-user] how to flush a process stream

2011-03-31 Thread Kevin Fishburne
On 03/30/2011 06:15 AM, Laurent Carlier wrote: > You can find a preliminary support of joysticks in gb.sdl in rev #3705, and a > small example joined here. Awesome... I'll check it out ASAP. Sadly my next task is to re-do my networking code because, as promised, Benoît removed all the Mk[Datatyp

Re: [Gambas-user] how to flush a process stream

2011-03-30 Thread Laurent Carlier
Le mercredi 30 mars 2011 04:57:46, Kevin Fishburne a écrit : > > What I did to relieve the problem for now was to call the WAIT statement > a bunch of times using a FOR...NEXT loop. That way even if my frame rate > is low, the gamepad's READ event is allowed to trigger multiple times > per frame.

Re: [Gambas-user] how to flush a process stream

2011-03-30 Thread Laurent Carlier
Le mercredi 30 mars 2011 04:57:46, Kevin Fishburne a écrit : > > That is very cool... I'm looking forward to seeing it, and yes I'm > currently using the SDL component. I switched the game over a couple of > months ago. > > What I did to relieve the problem for now was to call the WAIT statement

Re: [Gambas-user] how to flush a process stream

2011-03-29 Thread Kevin Fishburne
On 03/29/2011 06:13 PM, Laurent Carlier wrote: > Le mardi 29 mars 2011 04:33:21, Kevin Fishburne a écrit : >> I'm reading input from a gamepad by using code such as: >> >> pad_device = Exec ["cat", "/dev/input/js0"] For Read As "Gamepad" >> >> Public Sub Gamepad_READ() >> ' Process the gamepad

Re: [Gambas-user] how to flush a process stream

2011-03-29 Thread Laurent Carlier
Le mardi 29 mars 2011 04:33:21, Kevin Fishburne a écrit : > I'm reading input from a gamepad by using code such as: > > pad_device = Exec ["cat", "/dev/input/js0"] For Read As "Gamepad" > > Public Sub Gamepad_READ() >' Process the gamepad input. > End > > The problem is that analog stick mov

[Gambas-user] how to flush a process stream

2011-03-28 Thread Kevin Fishburne
I'm reading input from a gamepad by using code such as: pad_device = Exec ["cat", "/dev/input/js0"] For Read As "Gamepad" Public Sub Gamepad_READ() ' Process the gamepad input. End The problem is that analog stick movements create a LOT of read events which are generated far faster than the