This is a kind of reminder.
(On Android)
Source code.
linux/input.h struct input_event; : write 'struct input_event' to input event node. ex. struct input_event ev; ... write(fd, &ev, sizeof(ev)); ...
File system
/dev/input/*, /proc/bus/input/*
Touch event
type | code | value | |
<common> | EV_ABS EV_ABS |
ABS_X ABS_Y |
<value> <value> |
Press (or Drag)Release | EV_KEY EV_KEY |
BTN_TOUCH BTN_TOUCH |
1 0 |
<common> | EV_SYN | 0 | 0 |
Key event
type | code | value | |
Press | EV_KEY | <key code> | 1 |
Release | EV_KEY | <key code> | 0 |
Done.
'Domain > Linux' 카테고리의 다른 글
[Ubuntu] C-s and C-q doesn't work in gnorm-terminal (0) | 2011.03.18 |
---|---|
[Ubuntu] visual effect doens't work with Nvidia driver... (0) | 2011.01.19 |
[Linux][Android] Access framebuffer directly - how to (0) | 2010.11.23 |
[Ubuntu] alacarte를 사용하지 않고 GNOME desktop menu수정하기. (0) | 2010.11.10 |
[Linux][Prog] Understanding Standard IO (0) | 2010.11.03 |