mirror of
https://github.com/libretro/beetle-saturn-libretro.git
synced 2024-11-23 01:09:41 +00:00
Create input_update_with_bitmasks separate function
This commit is contained in:
parent
0c65f509c6
commit
c88ad96eec
3
input.h
3
input.h
@ -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 );
|
||||
|
10
libretro.cpp
10
libretro.cpp
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user