comparison 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
comparison
equal deleted inserted replaced
2997:e4f025078c1c 2998:d364ee9b9c15
66 DirectFB_InitMouse(_THIS) 66 DirectFB_InitMouse(_THIS)
67 { 67 {
68 SDL_DFB_DEVICEDATA(_this); 68 SDL_DFB_DEVICEDATA(_this);
69 69
70 devdata->num_mice = 0; 70 devdata->num_mice = 0;
71 if (LINUX_INPUT_SUPPORT) { 71 if (devdata->use_linux_input) {
72 /* try non-core devices first */ 72 /* try non-core devices first */
73 id_mask = 0xF0; 73 id_mask = 0xF0;
74 devdata->dfb->EnumInputDevices(devdata->dfb, EnumMice, devdata); 74 devdata->dfb->EnumInputDevices(devdata->dfb, EnumMice, devdata);
75 if (devdata->num_mice == 0) { 75 if (devdata->num_mice == 0) {
76 /* try core devices */ 76 /* try core devices */
98 void 98 void
99 DirectFB_QuitMouse(_THIS) 99 DirectFB_QuitMouse(_THIS)
100 { 100 {
101 SDL_DFB_DEVICEDATA(_this); 101 SDL_DFB_DEVICEDATA(_this);
102 102
103 if (LINUX_INPUT_SUPPORT) { 103 if (devdata->use_linux_input) {
104 SDL_MouseQuit(); 104 SDL_MouseQuit();
105 } else { 105 } else {
106 SDL_DelMouse(0); 106 SDL_DelMouse(0);
107 } 107 }
108 } 108 }