[scilab-Users] Main thread yield to graphics events
Samuel GOUGEON
Samuel.Gougeon at univ-lemans.fr
Wed Aug 26 12:20:28 CEST 2009
----- Message d'origine -----
De : Flemming Nyboe
Date : 12/08/2009 08:35:
> 2) alternatively, is there a way to detect if a keyboard key has been
> pressed without waiting if not.
>
For ibut variable of your my_eventhandler(),
ibut >= 32 : key of ascii ibut has been pressed
ibut <= -32 : key of ascii -ibut has been released
ibut >= 1000+32 : CTRL + key of ascii (ibut-1000) have been pressed
as stated in the page returned by -->help "event handler functions"
Regards
Samuel
More information about the users
mailing list