comparison src/video/qnxgf/SDL_gf_input.c @ 3500:4b594623401b

Work in progress on multi-display support: * Added display parameter to many internal functions so video modes can be set on displays that aren't the public current one. * The fullscreen mode is associated with fullscreen windows - not displays, so different windows more naturally have a mode associated with them based on their width and height. It's no longer necessary to specify a fullscreen mode, a default one will be picked automatically for fullscreen windows.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 01 Dec 2009 05:57:15 +0000
parents 87182c69e080
children 64ce267332c6
comparison
equal deleted inserted replaced
3499:4cf8a1423d57 3500:4b594623401b
58 SDLKey keymap[SDL_NUM_SCANCODES]; 58 SDLKey keymap[SDL_NUM_SCANCODES];
59 SDL_MouseData *mdata; 59 SDL_MouseData *mdata;
60 uint32_t it; 60 uint32_t it;
61 61
62 for (it = 0; it < _this->num_displays; it++) { 62 for (it = 0; it < _this->num_displays; it++) {
63 SDL_VideoDisplay *display = &_this->displays[it];
64
63 /* Clear SDL mouse structure */ 65 /* Clear SDL mouse structure */
64 SDL_memset(&gf_mouse, 0x00, sizeof(struct SDL_Mouse)); 66 SDL_memset(&gf_mouse, 0x00, sizeof(struct SDL_Mouse));
65 67
66 /* Allocate SDL_MouseData structure */ 68 /* Allocate SDL_MouseData structure */
67 mdata = (SDL_MouseData *) SDL_calloc(1, sizeof(SDL_MouseData)); 69 mdata = (SDL_MouseData *) SDL_calloc(1, sizeof(SDL_MouseData));
79 gf_mouse.FreeCursor = gf_freecursor; 81 gf_mouse.FreeCursor = gf_freecursor;
80 gf_mouse.WarpMouse = gf_warpmouse; 82 gf_mouse.WarpMouse = gf_warpmouse;
81 gf_mouse.FreeMouse = gf_freemouse; 83 gf_mouse.FreeMouse = gf_freemouse;
82 84
83 /* Get display data */ 85 /* Get display data */
84 didata = (SDL_DisplayData *) _this->displays[it].driverdata; 86 didata = (SDL_DisplayData *) display->driverdata;
85 87
86 /* Store SDL_DisplayData pointer in the mouse driver internals */ 88 /* Store SDL_DisplayData pointer in the mouse driver internals */
87 mdata->didata = didata; 89 mdata->didata = didata;
88 90
89 /* Set cursor pos to 0,0 to avoid cursor disappearing in some drivers */ 91 /* Set cursor pos to 0,0 to avoid cursor disappearing in some drivers */