mirror of
https://github.com/joel16/SDL2.git
synced 2025-02-01 01:02:43 +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;
|
++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…
x
Reference in New Issue
Block a user