*** empty log message ***
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40530
This commit is contained in:
parent
9735064647
commit
60c83fadc7
1 changed files with 3 additions and 0 deletions
|
@ -267,6 +267,9 @@ int main(int argc, char *argv[])
|
||||||
++frames;
|
++frames;
|
||||||
while ( SDL_PollEvent(&event) ) {
|
while ( SDL_PollEvent(&event) ) {
|
||||||
switch (event.type) {
|
switch (event.type) {
|
||||||
|
case SDL_MOUSEBUTTONDOWN:
|
||||||
|
SDL_WarpMouse(screen->w/2, screen->h/2);
|
||||||
|
break;
|
||||||
case SDL_KEYDOWN:
|
case SDL_KEYDOWN:
|
||||||
/* Any keypress quits the app... */
|
/* Any keypress quits the app... */
|
||||||
case SDL_QUIT:
|
case SDL_QUIT:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue