C:\Android\android-sdk\platform-tools>adb usb
C:\Android\android-sdk\platform-tools>adb shell
getevent
/dev/input/event3: 0003 0035 000002ed
/dev/input/event3: 0003 0036 0000024a
/dev/input/event3: 0003 0035 000002fb
/dev/input/event3: 0003 0036 000001fa
/dev/input/event3: 0003 0035 0000027c
/dev/input/event3: 0003 0036 000003e9
/dev/input/event3: 0003 0035 0000027c
/dev/input/event3: 0003 0036 000003e9
/dev/input/event3: 0003 0035 0000027c
/dev/input/event3: 0003 0036 000003e9
/dev/input/event3: 0003 0035 0000027c
/dev/input/event3: 0003 0036 000003e9
/dev/input/event3: 0003 0035 000000ab
/dev/input/event3: 0003 0036 000003ea
/dev/input/event3: 0003 0035 000000ab
/dev/input/event3: 0003 0036 000003ea
/dev/input/event3: 0003 0035 000000ab
/dev/input/event3: 0003 0036 000003ea
meaning of the values (Values are HEX, so need to change DECIMAL)
0035 - X
0036 - Y
참고로 장비마다 event 가 다름. 필요한것은 grep 활용
(아래 리스트는 HTC HD Desire.)
getevent
add device 1: /dev/input/event7
name: "proximity"
add device 2: /dev/input/event6
name: "lightsensor-level"
add device 3: /dev/input/event5
name: "compass"
add device 4: /dev/input/event4
name: "spade-keypad-v0"
add device 5: /dev/input/event3
name: "atmel-touchscreen"
add device 6: /dev/input/event2
name: "projector-Keypad"
add device 7: /dev/input/event1
name: "projector_input"
add device 8: /dev/input/event0
name: "h2w headset"
'Programming' 카테고리의 다른 글
윈도우7: 괄호가 포함된 파일이름 정확하게 검색하기 (3) | 2012.08.24 |
---|---|
[C언어] 텍스트 파일 읽어(fread) 개행문자(\n) 제거한 후 파일 쓰기(fwrite) (0) | 2012.04.22 |
Borland C++ Compiler (Windows) 환경설정 (0) | 2012.03.13 |
soft (0) | 2011.03.03 |
우리가 집중해야될 또 하나의 서비스. Google Art Project (0) | 2011.02.03 |