Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

Commit

Permalink
fix SDL_MOUSEDEV
Browse files Browse the repository at this point in the history
Only add SDL_MOUSEDEV and SDL_MOUSEDRV when touchcontroller is present.
Fixes: notro/fbtft#105
  • Loading branch information
notro committed Jul 24, 2014
1 parent 96d9a0a commit d46631b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions fbtft-stage2
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,11 @@ env_sudoers_d tslib "TSLIB_TSDEVICE TSLIB_FBDEVICE"
dotask env_profiles_d sdl.sh \
'export SDL_VIDEODRIVER=fbcon
export SDL_FBDEV=/dev/fb1
export SDL_MOUSEDRV=TSLIB
export SDL_MOUSEDEV=/dev/input/touchscreen'
if [[ -e /dev/input/touchscreen ]]; then
export SDL_MOUSEDRV=TSLIB
export SDL_MOUSEDEV=/dev/input/touchscreen
fi
'

dotask env_sudoers_d sdl "SDL_VIDEODRIVER SDL_FBDEV SDL_MOUSEDRV SDL_MOUSEDEV"

Expand Down

0 comments on commit d46631b

Please sign in to comment.