AESOP release된 kernel에 포함된 코드로 시험하였습니다.
하여간 간단히 ts 동작 하는지 확인하는 방법을 찾던중 거의 참조할만한게 없어서 삽질후에 알게되어 이렇게 올립니다.
제가 따로 수정한건 없고 기존 코드 그대로 사용했습니다.
새로이 추가한 config는 Touchscreen interface 이고 아래와 같습니다.
Device Drivers --->
Input device support --->
<*> Touchscreen interface
(1024) Horizontal screen resolution
(1024) Vertical screen resolution
[*] Touchscreens --->
<*> Samsung S3C2410 touchscreen input driver
device명은 /dev/input/ts0
crw-r--r-- 1 root root 13, 128 Nov 21 2006 /dev/input/ts0
ts_event 구조는 아래와 같이 되어 있네요.
struct ts_event {
short pressure;
short x;
short y;
short millisecs;
};
위 config 추가하신후 부팅하고 첨부한 ts.c로 시험해보세요^^
필요하신분이 있었으면 좋겠네요^^
* 고도리님에 의해서 게시물 이동되었습니다 (2007-03-19 10:36)