List initialize Controls
This commit is contained in:
parent
bc7a8eb600
commit
fda2bf70aa
|
@ -740,7 +740,7 @@ static int automap_process_input(window *wind, d_event *event, automap *am)
|
|||
Controls = am->controls;
|
||||
kconfig_read_controls(event, 1);
|
||||
am->controls = Controls;
|
||||
memset(&Controls, 0, sizeof(control_info));
|
||||
Controls = {};
|
||||
|
||||
if ( !am->controls.state.automap && (am->leave_mode==1) )
|
||||
{
|
||||
|
|
|
@ -361,7 +361,7 @@ void game_flush_inputs()
|
|||
joy_flush();
|
||||
mouse_flush();
|
||||
mouse_get_delta( &dx, &dy, &dz ); // Read mouse
|
||||
memset(&Controls,0,sizeof(control_info));
|
||||
Controls = {};
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -1480,7 +1480,7 @@ void kconfig_read_controls(d_event *event, int automap_flag)
|
|||
// --- Don't do anything if in debug mode ---
|
||||
if ( keyd_pressed[KEY_DELETE] )
|
||||
{
|
||||
memset( &Controls, 0, sizeof(control_info) );
|
||||
Controls = {};
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue