0 Members and 3 Guests are viewing this topic.
I remember Goplat posted once an OS function definition to directly read key events (and key codes). I can't find it back, I don't think it has been integrated to Ndless.
static const unsigned get_event_addrs[] = {0x1016C354, 0x1016e36c, 0x101b2724, 0x101b2fec}; //OS 1.7 ,OS2.0.1.60#define get_event SYSCALL_CUSTOM(get_event_addrs, int, struct event *)
When you call it, it waits until a key gets pressed and then gives you the key code.