mirror of
https://github.com/joel16/SDL2.git
synced 2025-01-31 16:54:34 +00:00
*** empty log message ***
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40530
This commit is contained in:
parent
9735064647
commit
60c83fadc7
@ -267,6 +267,9 @@ int main(int argc, char *argv[])
|
||||
++frames;
|
||||
while ( SDL_PollEvent(&event) ) {
|
||||
switch (event.type) {
|
||||
case SDL_MOUSEBUTTONDOWN:
|
||||
SDL_WarpMouse(screen->w/2, screen->h/2);
|
||||
break;
|
||||
case SDL_KEYDOWN:
|
||||
/* Any keypress quits the app... */
|
||||
case SDL_QUIT:
|
||||
|
Loading…
x
Reference in New Issue
Block a user