--- gui/fbsup.h.orig 2008-01-21 21:55:42.000000000 +0100 +++ gui/fbsup.h 2008-04-10 12:06:06.000000000 +0200 @@ -45,7 +45,24 @@ //#define USE_MOUSE_PS2 // Define this to read from /dev/input/event0 (new generic input subsystem) -#define USE_INPUT_EVENTS +//#define USE_INPUT_EVENTS + +#define USE_TSLIB + +#ifdef USE_TSLIB +extern "C" +{ +#include +} + +//Either use environment variable or hardcoded value +//Hint: /dev/ts can be a symlink to the real ts device. +//TSLIB_DEVICE environment variable should point to the +//touchscreen device the library is using. +#define TSLIB_DEVICE_ENV "TSLIB_TSDEVICE" +#define TSLIB_DEVICE_NAME "/dev/ts" + +#endif // Define this to support eTurboTouch / eGalax touchscreens. When reading from // a serial device, it must be initialized (stty) externally. @@ -65,6 +82,7 @@ //#define REQUEST_NEW_VT + namespace gnash { @@ -132,6 +150,13 @@ int mouse_x, mouse_y, mouse_btn; unsigned char mouse_buf[256]; int mouse_buf_size; + +#ifdef USE_TSLIB + struct tsdev *tsDev; + bool init_tslib(); + void check_tslib(); + +#endif // Keyboard SHIFT/CTRL/ALT states (left + right) bool keyb_lshift, keyb_rshift, keyb_lctrl, keyb_rctrl, keyb_lalt, keyb_ralt;