mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
(input_driver.c) Prevent implicit memsets
This commit is contained in:
parent
e97fb7d94a
commit
b2dcd44c3a
@ -259,7 +259,10 @@ float input_sensor_get_input(unsigned port, unsigned id)
|
|||||||
static retro_input_t input_driver_keys_pressed(void)
|
static retro_input_t input_driver_keys_pressed(void)
|
||||||
{
|
{
|
||||||
unsigned key;
|
unsigned key;
|
||||||
retro_input_t ret = {0};
|
retro_input_t ret;
|
||||||
|
|
||||||
|
ret.type = 0;
|
||||||
|
ret.state = 0;
|
||||||
|
|
||||||
for (key = 0; key < RARCH_BIND_LIST_END; key++)
|
for (key = 0; key < RARCH_BIND_LIST_END; key++)
|
||||||
{
|
{
|
||||||
@ -592,10 +595,13 @@ static bool check_input_driver_block_hotkey(bool enable_hotkey)
|
|||||||
retro_input_t input_keys_pressed(void)
|
retro_input_t input_keys_pressed(void)
|
||||||
{
|
{
|
||||||
unsigned i, key;
|
unsigned i, key;
|
||||||
|
retro_input_t ret;
|
||||||
const struct retro_keybind *binds[MAX_USERS];
|
const struct retro_keybind *binds[MAX_USERS];
|
||||||
retro_input_t ret = {0};
|
|
||||||
settings_t *settings = config_get_ptr();
|
settings_t *settings = config_get_ptr();
|
||||||
|
|
||||||
|
ret.type = 0;
|
||||||
|
ret.state = 0;
|
||||||
|
|
||||||
for (i = 0; i < MAX_USERS; i++)
|
for (i = 0; i < MAX_USERS; i++)
|
||||||
binds[i] = settings->input.binds[i];
|
binds[i] = settings->input.binds[i];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user