input: fix alternative mapping if keyboard is used for confirmation.
This commit is contained in:
@@ -1130,6 +1130,11 @@ void start_map_setting(int cnt, int set)
|
||||
user_io_kbd(KEY_ENTER, 0);
|
||||
}
|
||||
|
||||
int get_map_set()
|
||||
{
|
||||
return mapping_set;
|
||||
}
|
||||
|
||||
int get_map_button()
|
||||
{
|
||||
return mapping_button;
|
||||
|
||||
1
input.h
1
input.h
@@ -81,6 +81,7 @@ int input_poll(int getchar);
|
||||
int is_key_pressed(int key);
|
||||
|
||||
void start_map_setting(int cnt, int set = 0);
|
||||
int get_map_set();
|
||||
int get_map_button();
|
||||
int get_map_type();
|
||||
int get_map_clear();
|
||||
|
||||
2
menu.cpp
2
menu.cpp
@@ -3522,7 +3522,7 @@ void HandleUI(void)
|
||||
|
||||
if (get_map_vid() || get_map_pid())
|
||||
{
|
||||
if (!is_menu() && get_map_type() && !has_default_map())
|
||||
if (!is_menu() && get_map_type() && !has_default_map() && !get_map_set())
|
||||
{
|
||||
for (int i = 0; i < OsdGetSize(); i++) OsdWrite(i);
|
||||
OsdWrite(6, " You need to define this");
|
||||
|
||||
Reference in New Issue
Block a user