[Gambas-user] Knowing keyboard state without being in a key event
Fabien Bodard
gambasfr at ...11...
Thu Jul 8 21:22:28 CEST 2004
Le jeudi 8 Juillet 2004 16:17, DASNOIS Benjamin a écrit :
> Rob wrote:
> >On Thursday 08 July 2004 09:23, DASNOIS Benjamin wrote:
> >>I didn't see anything to do this but I hope there's a way to:
> >>I would like to know the state of the keyboard anywhere in the
> >>code (read: without being in a keyboard event) I need to know
> >>if some keys are pressed when being in a loop. I hope someone
> >>can help me.
> >
> >See my space game example from a few weeks ago (the animation is
> >too slow but the keyboard stuff works fine.) Basically you need
> >to declare a class-level variable reflecting key state, and set
> >that in each KeyPress or KeyRelease event handler.
> >
> >Rob
>
> No problem if you tell me where I can find it because I wasn't
> subscribed to this list until yesterday.It's for a game too (I'll
> release the source if people want me to cause I'm affraid of the example
> games given with gambas ; it's not good game programming).
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by Black Hat Briefings & Training.
> Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
> digital self defense, top technical experts, no vendor pitches,
> unmatched networking opportunities. Visit www.blackhat.com
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
lol
i think it going to change speedily...
But to really write a game in gambas ... it miss the graphical part of sdl
component.... 2d and after the 3d one... i hope
Fabien bodard
More information about the User
mailing list