comparison src/video/win32/SDL_win32window.c @ 4919:716b2cbf4c9e

First pass at Windows multi-touch gesture support
author Sam Lantinga <slouken@libsdl.org>
date Tue, 30 Nov 2010 17:58:51 -0800
parents 50d0bff24d81
children 6546eaa20271
comparison
equal deleted inserted replaced
4918:f5f70fed2c4c 4919:716b2cbf4c9e
141 ClientToScreen(hwnd, (LPPOINT) & rect); 141 ClientToScreen(hwnd, (LPPOINT) & rect);
142 ClientToScreen(hwnd, (LPPOINT) & rect + 1); 142 ClientToScreen(hwnd, (LPPOINT) & rect + 1);
143 ClipCursor(&rect); 143 ClipCursor(&rect);
144 } 144 }
145 } 145 }
146
147 /* Enable multi-touch */
148 videodata->RegisterTouchWindow(hwnd, (TWF_FINETOUCH|TWF_WANTPALM));
146 149
147 /* All done! */ 150 /* All done! */
148 window->driverdata = data; 151 window->driverdata = data;
149 return 0; 152 return 0;
150 } 153 }