comparison test/testgl.c @ 2710:44e49d3fa6cf

Final merge of Google Summer of Code 2008 work... Many-mouse and tablet support by Szymon Wilczek, mentored by Ryan C. Gordon Everything concerning the project is noted on the wiki: http://wilku.ravenlord.ws/doku.php?id=start
author Sam Lantinga <slouken@libsdl.org>
date Mon, 25 Aug 2008 06:33:00 +0000
parents 5835745560bf
children 7812d3e9564e
comparison
equal deleted inserted replaced
2709:fd3f0f1147e7 2710:44e49d3fa6cf
268 return; 268 return;
269 } 269 }
270 } 270 }
271 271
272 /* Move the image around */ 272 /* Move the image around */
273 SDL_GetMouseState(&x, &y); 273 SDL_GetMouseState(0, &x, &y);
274 x -= w / 2; 274 x -= w / 2;
275 y -= h / 2; 275 y -= h / 2;
276 276
277 /* Show the image on the screen */ 277 /* Show the image on the screen */
278 SDL_GL_Enter2DMode(); 278 SDL_GL_Enter2DMode();