2010-12-14 05:37:46 Problem with SDL and tslib
Adrian Trüb (SWITZERLAND)
Message: 96705
Hi
I have a problem with the tslib and sdl. The SDL_MOUSE.. event gives starnge coordinates. When I press on the screen the mouse cursor jumps to random positions.
I tested the Touchscreen with ts_test and it works fine. So the problem is just with the SDL.
=================================================
Toolchain: 2010RC4
uclinux-dist: 2010RC4
Board: BF548-EZKIT
----------------------------------------------------
env:
#SDL
export SDL_NOMOUSE=1
export SDL_MOUSEDEV=/dev/event1
export SDL_MOUSEDRV=TSLIB
#Touchscreen
export TSLIB_TSEVENTTYPE=INPUT
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_CONSOLEDEVICE=none
export TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_CALIBFILE=/mnt/pointercal
export TSLIB_TSDEVICE=/dev/event1
export TSLIB_PLUGINDIR=/usr/lib/ts
----------------------------------------------------
ts.conf:
module_raw input
module pthres pmin=1
module variance delta=30
module dejitter delta=100
module linear
----------------------------------------------------
pointercal:
-7938 -121 32178844 279 -4718 18233074 65536
----------------------------------------------------
fb.modes: (fbset > fb.modes)
mode "480x272-0"
geometry 480 272 480 272 24
timings 0 0 0 0 0 0 0
accel false
rgba 8/16,8/8,8/0,0/0
endmode
=================================================
QuoteReplyEditDelete
2010-12-17 05:00:11 Re: Problem with SDL and tslib
Adrian Trüb (SWITZERLAND)
Message: 96842
Ok, I got it.
I changed the Makefile from the SDL (uclinux-dist/lib/libsdl/Makefile):
CONF_OPTS = \
--disable-arts \
--disable-esd \
--disable-pth \
--disable-video-directfb \
--disable-video-x11 \
--enable-input-tslib
Now it works fine.