Mercurial > sdl-ios-xcode
comparison src/video/directfb/SDL_DirectFB_video.c @ 2860:6ce28e5287e9
Date: Sun, 07 Dec 2008 13:35:23 +0100
From: Couriersud
Subject: SDL: Mouse last_x, last_y into SDL_Mouse
the attached diff moves the static vars last_x and last_y into
SDL_Mouse. These, as far as I understand it, should be tied to the
individual mouse.
The patch also makes the code check for out of window conditions of
mouse->x,y when relative movements are passed to MouseSendMotion.
Also attached is the latest DirectFB code (dfb20081208) supporting
multiple mice and keyboards. This works quite well with sdlmame now. It
however needs more testing with different directfb configurations.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 08 Dec 2008 00:52:12 +0000 |
parents | 99210400e8b9 |
children | d364ee9b9c15 |
comparison
equal
deleted
inserted
replaced
2859:99210400e8b9 | 2860:6ce28e5287e9 |
---|---|
153 stemp = getenv(DFBENV_USE_YUV_UNDERLAY); | 153 stemp = getenv(DFBENV_USE_YUV_UNDERLAY); |
154 if (stemp) | 154 if (stemp) |
155 devdata->use_yuv_underlays = atoi(stemp); | 155 devdata->use_yuv_underlays = atoi(stemp); |
156 | 156 |
157 /* Create global Eventbuffer for axis events */ | 157 /* Create global Eventbuffer for axis events */ |
158 SDL_DFB_CHECKERR(dfb-> | 158 if (LINUX_INPUT_SUPPORT) { |
159 CreateInputEventBuffer(dfb, DICAPS_AXES /*DICAPS_ALL */ , | 159 SDL_DFB_CHECKERR(dfb-> |
160 DFB_TRUE, &devdata->events)); | 160 CreateInputEventBuffer(dfb, DICAPS_ALL, |
161 DFB_TRUE, &devdata->events)); | |
162 } else { | |
163 SDL_DFB_CHECKERR(dfb-> | |
164 CreateInputEventBuffer(dfb, | |
165 DICAPS_AXES /*DICAPS_ALL */ , | |
166 DFB_TRUE, &devdata->events)); | |
167 } | |
161 | 168 |
162 devdata->initialized = 1; | 169 devdata->initialized = 1; |
163 devdata->dfb = dfb; | 170 devdata->dfb = dfb; |
164 devdata->firstwin = NULL; | 171 devdata->firstwin = NULL; |
165 | 172 |