Mercurial > sdl-ios-xcode
comparison src/video/win32/SDL_win32mouse.c @ 2974:d2f68ec8c1d0
The mouse position is relative to the client window.
Fixed setting the mouse focus when the mouse enters/leaves the window.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 03 Jan 2009 06:03:56 +0000 |
parents | b93965a16fe0 |
children | 8789e4b0e0e7 |
comparison
equal
deleted
inserted
replaced
2973:ab0c00f1b070 | 2974:d2f68ec8c1d0 |
---|---|
173 if (tablet == index) { | 173 if (tablet == index) { |
174 AXIS pressure; | 174 AXIS pressure; |
175 int cursors; | 175 int cursors; |
176 data->WTInfoA(WTI_DEVICES, DVC_NPRESSURE, &pressure); | 176 data->WTInfoA(WTI_DEVICES, DVC_NPRESSURE, &pressure); |
177 data->WTInfoA(WTI_DEVICES, DVC_NCSRTYPES, &cursors); | 177 data->WTInfoA(WTI_DEVICES, DVC_NCSRTYPES, &cursors); |
178 data->mouse = | 178 SDL_AddMouse(&mouse, device_name, pressure.axMax, pressure.axMin, cursors); |
179 SDL_AddMouse(&mouse, device_name, pressure.axMax, | |
180 pressure.axMin, cursors); | |
181 } else { | 179 } else { |
182 data->mouse = SDL_AddMouse(&mouse, device_name, 0, 0, 1); | 180 SDL_AddMouse(&mouse, device_name, 0, 0, 1); |
183 } | 181 } |
184 ++index; | 182 ++index; |
185 SDL_free(buffer); | 183 SDL_free(buffer); |
186 SDL_free(key_name); | 184 SDL_free(key_name); |
187 } | 185 } |