comparison 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
comparison
equal deleted inserted replaced
1200:8f418dce02b2 1201:718d00094f82
33 #include <linux/fb.h> 33 #include <linux/fb.h>
34 34
35 #include "SDL_mouse.h" 35 #include "SDL_mouse.h"
36 #include "SDL_mutex.h" 36 #include "SDL_mutex.h"
37 #include "SDL_sysvideo.h" 37 #include "SDL_sysvideo.h"
38 #ifdef HAVE_TSLIB
39 #include "tslib.h"
40 #endif
38 41
39 /* Hidden "this" pointer for the video functions */ 42 /* Hidden "this" pointer for the video functions */
40 #define _THIS SDL_VideoDevice *this 43 #define _THIS SDL_VideoDevice *this
41 44
42 45
63 int keyboard_fd; 66 int keyboard_fd;
64 int saved_kbd_mode; 67 int saved_kbd_mode;
65 struct termios saved_kbd_termios; 68 struct termios saved_kbd_termios;
66 69
67 int mouse_fd; 70 int mouse_fd;
71 #ifdef HAVE_TSLIB
72 struct tsdev *ts_dev;
73 #endif
68 74
69 char *mapped_mem; 75 char *mapped_mem;
70 int mapped_memlen; 76 int mapped_memlen;
71 int mapped_offset; 77 int mapped_offset;
72 char *mapped_io; 78 char *mapped_io;
93 #define saved_vt (this->hidden->saved_vt) 99 #define saved_vt (this->hidden->saved_vt)
94 #define keyboard_fd (this->hidden->keyboard_fd) 100 #define keyboard_fd (this->hidden->keyboard_fd)
95 #define saved_kbd_mode (this->hidden->saved_kbd_mode) 101 #define saved_kbd_mode (this->hidden->saved_kbd_mode)
96 #define saved_kbd_termios (this->hidden->saved_kbd_termios) 102 #define saved_kbd_termios (this->hidden->saved_kbd_termios)
97 #define mouse_fd (this->hidden->mouse_fd) 103 #define mouse_fd (this->hidden->mouse_fd)
104 #ifdef HAVE_TSLIB
105 #define ts_dev (this->hidden->ts_dev)
106 #endif /* HAVE_TSLIB */
98 #define cache_vinfo (this->hidden->cache_vinfo) 107 #define cache_vinfo (this->hidden->cache_vinfo)
99 #define saved_vinfo (this->hidden->saved_vinfo) 108 #define saved_vinfo (this->hidden->saved_vinfo)
100 #define saved_cmaplen (this->hidden->saved_cmaplen) 109 #define saved_cmaplen (this->hidden->saved_cmaplen)
101 #define saved_cmap (this->hidden->saved_cmap) 110 #define saved_cmap (this->hidden->saved_cmap)
102 #define mapped_mem (this->hidden->mapped_mem) 111 #define mapped_mem (this->hidden->mapped_mem)