5 int win_width, win_height;
6 int vp_width, vp_height; /* viewport size differs from win size during VR eye rendering */
41 /* XXX make sure these match with SDL_GameControllerButton */
60 int game_init(int argc, char **argv);
64 void game_reshape(int x, int y);
66 void game_keyboard(int key, int pressed);
67 void game_mouse_button(int bn, int pressed, int x, int y);
68 void game_mouse_motion(int x, int y);
69 void game_mouse_delta(int dx, int dy);
70 void game_mouse_wheel(int dir);
72 void game_gamepad_axis(int axis, float val);
73 void game_gamepad_button(int bn, int pressed);
75 /* the following functions are implemented by the backend (main.c) */
77 void game_swap_buffers();
78 unsigned int game_get_modifiers();
80 void game_resize(int x, int y);
81 void game_fullscreen(int fs);
82 void game_toggle_fullscreen();
83 int game_is_fullscreen();