X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=input.h;h=fe387ccdd47a4d0d59bf903a7a07170ef0b41bb6;hb=2dd61c7f0185ec525658ca398801f46e6adccf23;hp=6548eef2c9d163d00a7c99a4b0ef60fcd3b8aef2;hpb=d07048b61445be11605adba43667e19214358a24;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/input.h b/input.h index 6548eef..fe387cc 100644 --- a/input.h +++ b/input.h @@ -7,7 +7,6 @@ #include "vg/vg_console.h" #include "vg/vg_input.h" #include "vg/vg_m.h" -#include "conf.h" #include "font.h" enum sr_bind{ @@ -47,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; @@ -183,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 ) @@ -245,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