X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=input.h;fp=input.h;h=fe387ccdd47a4d0d59bf903a7a07170ef0b41bb6;hb=2dd61c7f0185ec525658ca398801f46e6adccf23;hp=b4262bc0f0ef9a08e460e7338d8266a330c8a30e;hpb=09be4380a98386d6494946fbd3369458f8e7f267;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/input.h b/input.h index b4262bc..fe387cc 100644 --- a/input.h +++ b/input.h @@ -46,7 +46,7 @@ struct { float axis_states[ k_sraxis_max ][2]; v2f joystick_states[ k_srjoystick_max ][2]; u8 button_states[ k_srbind_max ][2]; - u32 ignore_input_frames; + u32 enabled; } static srinput; @@ -182,7 +182,7 @@ static const char *joystick_display_string( enum sr_joystick joystick, static int buttons_filter_fixed(void) { - if( srinput.ignore_input_frames ) return 1; + if( !srinput.enabled ) return 1; if( vg_ui.wants_mouse ) return 1; if( vg.engine_stage == k_engine_stage_update_fixed ) @@ -244,9 +244,6 @@ static void setbtn( enum sr_bind button, u8 value ) static void skaterift_preupdate_inputs(void) { - if( srinput.ignore_input_frames ) - srinput.ignore_input_frames --; - for( u32 i=0; i