how to get ascci values of home/de/ins/pageup/pagedwn keys
Hi,
I am using usb HID keypad ( mini keypad)
If i enable numlock i am able to scan digits 0 to 9,
but how can i detect key scan codes of pageup/page down/ left arrow right arrow /end/home/
when i am trying with scanf func, on console its displayig like this
home key: ^[[1~
uparrow : ^[[A
left arrow : ^[[D
right arrow :^[[C
end key: ^[[4~
del key: ^[[3~
insert key: ^[[2~
how to read ascii values of these keys in C language
I want map events to these keys.
Thanks in advance
nathan
Last edited by nathan; 08-06-2009 at 03:47 AM.
|