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.st...@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@lists.scilab.orghttp://lists.scilab.org/mailman/listinfo/users
_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users

Reply via email to