X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=vrtris;a=blobdiff_plain;f=src%2Fgame.h;h=2625f1ad5573550ba88cb98b12a3c518eb8c20e1;hp=3ada42050fa53c77235b590b453eab0612879a4b;hb=325391b617a3f5a1f17e03598baa66d00715422d;hpb=257b041b5f6f64b53bafe5b4d4f8ffa67a39c0e5 diff --git a/src/game.h b/src/game.h index 3ada420..2625f1a 100644 --- a/src/game.h +++ b/src/game.h @@ -7,6 +7,9 @@ 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 { @@ -56,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); @@ -83,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_