static inline float vg_get_axis( const char *axis );
static inline int vg_get_button( const char *button );
+
+/*
+ * Cannot be used in fixed update
+ */
static inline int vg_get_button_down( const char *button );
static inline int vg_get_button_up( const char *button );
static inline int vg_get_button_down( const char *button )
{
+ if( vg.engine_stage == k_engine_stage_update_fixed )
+ vg_fatal_exit_loop( "Cannot use that here\n" );
+
int cur, prev;
vg_get_button_states( button, &cur, &prev );
static inline int vg_get_button_up( const char *button )
{
+ if( vg.engine_stage == k_engine_stage_update_fixed )
+ vg_fatal_exit_loop( "Cannot use that here\n" );
+
int cur, prev;
vg_get_button_states( button, &cur, &prev );