diff src/video/directfb/SDL_DirectFB_mouse.c @ 2998:d364ee9b9c15

Date: Sun, 04 Jan 2009 20:53:30 +0100 From: Couriersud Subject: SDL1.3 DirectFB patches The attached contains the following directfb changes: - Dynamic loading of libdirectfb.so. This may to turned off as well in configure - Use linux-input by default. May be switched off by environment variable. - Added some code which will use directfb's x11 backend when DISPLAY is set.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 04 Jan 2009 23:43:33 +0000
parents b93965a16fe0
children 8f4ed5ec2b06
line wrap: on
line diff
--- a/src/video/directfb/SDL_DirectFB_mouse.c	Sun Jan 04 23:41:09 2009 +0000
+++ b/src/video/directfb/SDL_DirectFB_mouse.c	Sun Jan 04 23:43:33 2009 +0000
@@ -68,7 +68,7 @@
     SDL_DFB_DEVICEDATA(_this);
 
     devdata->num_mice = 0;
-    if (LINUX_INPUT_SUPPORT) {
+    if (devdata->use_linux_input) {
         /* try non-core devices first */
         id_mask = 0xF0;
         devdata->dfb->EnumInputDevices(devdata->dfb, EnumMice, devdata);
@@ -100,7 +100,7 @@
 {
     SDL_DFB_DEVICEDATA(_this);
 
-    if (LINUX_INPUT_SUPPORT) {
+    if (devdata->use_linux_input) {
         SDL_MouseQuit();
     } else {
         SDL_DelMouse(0);