Create input_update_with_bitmasks separate function

This commit is contained in:
libretroadmin 2022-05-26 19:08:23 +02:00
parent 0c65f509c6
commit c88ad96eec
3 changed files with 673 additions and 279 deletions

939
input.cpp

File diff suppressed because it is too large Load Diff

View File

@ -19,7 +19,8 @@ void input_set_deadzone_stick( int percent );
void input_set_deadzone_trigger( int percent );
void input_set_mouse_sensitivity( int percent );
void input_update( retro_input_state_t input_state_cb, bool supports_bitmasks );
void input_update( retro_input_state_t input_state_cb);
void input_update_with_bitmasks( retro_input_state_t input_state_cb );
// save state function for input
int input_StateAction( StateMem* sm, const unsigned load, const bool data_only );

View File

@ -739,7 +739,10 @@ void retro_run(void)
input_poll_cb();
input_update( input_state_cb, libretro_supports_bitmasks );
if (libretro_supports_bitmasks)
input_update_with_bitmasks( input_state_cb);
else
input_update( input_state_cb);
static int32 rects[MEDNAFEN_CORE_GEOMETRY_MAX_H];
rects[0] = ~0;
@ -1096,5 +1099,8 @@ void MDFN_DispMessage(const char *format, ...)
void MDFN_MidSync(void)
{
input_poll_cb();
input_update( input_state_cb, libretro_supports_bitmasks);
if (libretro_supports_bitmasks)
input_update_with_bitmasks( input_state_cb);
else
input_update( input_state_cb);
}