X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;ds=sidebyside;f=src%2Fgame.h;h=2625f1ad5573550ba88cb98b12a3c518eb8c20e1;hb=325391b617a3f5a1f17e03598baa66d00715422d;hp=0bcd229fc3974ea7fe5af3eba8c2afa6631266d8;hpb=49fdb2457dbb7705501264d519e840dd3ca60919;p=vrtris diff --git a/src/game.h b/src/game.h index 0bcd229..2625f1a 100644 --- a/src/game.h +++ b/src/game.h @@ -7,6 +7,11 @@ int vp_width, vp_height; /* viewport size differs from win size during VR eye re float win_aspect; int fb_srgb; +float joy_axis[3]; +unsigned int joy_bnstate; + +float view_matrix[16], proj_matrix[16]; + enum { MOD_SHIFT = 1, MOD_ALT = 2, @@ -54,7 +59,17 @@ enum { GPAD_UP, GPAD_DOWN, GPAD_LEFT, - GPAD_RIGHT, + GPAD_RIGHT +}; + +/* XXX make sure these match with SDL_GameControllerAxis */ +enum { + GPAD_LSTICK_X, + GPAD_LSTICK_Y, + GPAD_RSTICK_X, + GPAD_RSTICK_Y, + GPAD_LTRIG, + GPAD_RTRIG }; int game_init(int argc, char **argv); @@ -81,4 +96,7 @@ void game_fullscreen(int fs); void game_toggle_fullscreen(void); int game_is_fullscreen(void); +int game_num_joy_axes(void); +int game_num_joy_buttons(void); + #endif // GAME_H_