diff src/video/fbcon/SDL_fbvideo.h @ 1201:718d00094f82

Date: Sat, 10 Dec 2005 18:29:41 +0100 From: Alberto Mardegan <mardy@users.sourceforge.net> To: sdl@libsdl.org Subject: [SDL] [PATCH] Touchscreen support to fbcon via tslib Hi all! I'm new to this list, I just subscribed. I've attached to this e-mail a patch I've written in order to add Touchscreen support to SDL's fbcon module via the tslib library. Since it introduces a new dependency, I've also edited the the configure.in file and added it as a compile-time option. This patch is especially useful for handhelds (I've tested it in my Zaurus). Please consider applying it. :-) -- Saluti, Mardy http://interlingua.altervista.org
author Ryan C. Gordon <icculus@icculus.org>
date Mon, 12 Dec 2005 09:26:32 +0000
parents b8d311d90021
children c9b51268668f
line wrap: on
line diff
--- a/src/video/fbcon/SDL_fbvideo.h	Mon Dec 12 09:22:36 2005 +0000
+++ b/src/video/fbcon/SDL_fbvideo.h	Mon Dec 12 09:26:32 2005 +0000
@@ -35,6 +35,9 @@
 #include "SDL_mouse.h"
 #include "SDL_mutex.h"
 #include "SDL_sysvideo.h"
+#ifdef HAVE_TSLIB
+#include "tslib.h"
+#endif
 
 /* Hidden "this" pointer for the video functions */
 #define _THIS	SDL_VideoDevice *this
@@ -65,6 +68,9 @@
 	struct termios saved_kbd_termios;
 
 	int mouse_fd;
+#ifdef HAVE_TSLIB
+	struct tsdev *ts_dev;
+#endif
 
 	char *mapped_mem;
 	int mapped_memlen;
@@ -95,6 +101,9 @@
 #define saved_kbd_mode		(this->hidden->saved_kbd_mode)
 #define saved_kbd_termios	(this->hidden->saved_kbd_termios)
 #define mouse_fd		(this->hidden->mouse_fd)
+#ifdef HAVE_TSLIB
+#define ts_dev			(this->hidden->ts_dev)
+#endif /* HAVE_TSLIB */
 #define cache_vinfo		(this->hidden->cache_vinfo)
 #define saved_vinfo		(this->hidden->saved_vinfo)
 #define saved_cmaplen		(this->hidden->saved_cmaplen)