diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -188,7 +188,8 @@ int main(int argc, char *argv[]) { } SDL_WM_SetCaption("Thrust3D", "Thrust3D"); - SDL_ShowCursor(SDL_DISABLE); + SDL_ShowCursor(SDL_ENABLE); + SDL_WM_GrabInput(SDL_GRAB_ON); /* World setup */ Game *game; @@ -229,6 +230,10 @@ int main(int argc, char *argv[]) { if ( event.key.keysym.sym == SDLK_DOWN ) game->reverse = 0; if ( event.key.keysym.sym == SDLK_p ) game->pause_rel = 1; break; + case SDL_MOUSEMOTION : + printf("Mouse! %i\n", event.motion.y); + //game->view_angle -= event.motion.yrel*0.001; + break; case SDL_VIDEOEXPOSE : /* Don't bother redrawing if not paused - not long to wait! */ if ( game->paused ) render_draw(game, t); |