New Kernel
----------
-uinput support needed
-mice support needed

kernel needs (thx to mth!)

* CONFIG_INPUT_UINPUT
* CONFIG_INPUT_MOUSEDEV 


Modify "local/sbin/main"
------------------------
remove:
#export SDL_NOMOUSE=1

start virtualmouse
------------------
./keymouse.dge keymouse.cfg 1 &




ADDITIONAL INFOS
===================================

create new Device
-----------------
# mkdir /dev/input
# mknod /dev/input/mice c 13 65


Char device
-----------
When booting, you can see that message: input: s3c2410 TouchScreen as /devices/virtual/input/input1?. And indeed, if you go to the directory /sys/devices/virtual/input/input1? (dont forget to mount /sys), youll see some nice things.
In this folder, 2 directories have interesting names: event1 and mouse0, and both of them have a dev file in their content. They contain major:minor addresses of their character devices. Hu ?
event1 provide a touchscreen way to access to the touchscreen input while the mouse0 provide another abstraction that show the ts as a mice.
To access them, we have to make a node in /dev as following:

mkdir /dev/input
mknod /dev/input/ts c 13 65 # (from event1/dev)
mknod /dev/input/mice c 13 32 # (from mouse0/dev)

BTW, I kind of discovered the mouse input after doing whats next, but I didnt really had good results with that abstraction.
tslib

In order to exploit whats coming from /dev/input/ts (if you do cat /dev/input/ts, you should see some weird characters when touching the screen ;) ), we can use the tslib library.
I followed that howto to cross-compile it.


Links
-----
http://blog.cor-net.org/tag/howto/

http://linuxwiki.de/mknod
