[Scilab-users] Recognition of cursor key as input
stephane.mottelet at utc.fr
stephane.mottelet at utc.fr
Wed Aug 13 11:10:24 CEST 2014
Hello,
IMHO, the only way to trap a keypress and get the ascii (?) code is to use
the event_handler callback of a figure :
function handler(x,y,ibut)
//
endfunction
f=gcf();
f.event_handler='handler';
f.event_handle_enable='on';
On my computer, I have the following mapping
left arrow pressed : ibut=37 (released=-37)
up arrow : 38
right arrow 39
down arrow 40
The problem is that you need to have a figure opened, and that this figure
must have the focus.
S.
Jens <j.s.strom at hslmg.de> a écrit :
> Hi Samuel,
> ASCII representation of up, down etc. would help me if I knew a Scilab
> command which puts the ascii value into a variable. input() is definitely
> unable to do so.
>
> Jens
>
> --
> View this message in context:
>
http://mailinglists.scilab.org/Scilab-users-Recognition-of-cursor-key-as-input-tp4031013p4031026.html
> Sent from the Scilab users - Mailing Lists Archives mailing list archive
> at Nabble.com.
> _______________________________________________
> users mailing list
> users at lists.scilab.orghttp://lists.scilab.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20140813/44c8996a/attachment.htm>
More information about the users
mailing list