Added the ability for keyboard to require capture, in order for 86Box keyboard input to operate like VMWare, closes #829.
This commit is contained in:
@@ -513,6 +513,7 @@ load_general(void)
|
||||
}
|
||||
|
||||
sound_gain = config_get_int(cat, "sound_gain", 0);
|
||||
kbd_req_capture = config_get_int(cat, "kbd_req_capture", 0);
|
||||
|
||||
confirm_reset = config_get_int(cat, "confirm_reset", 1);
|
||||
confirm_exit = config_get_int(cat, "confirm_exit", 1);
|
||||
@@ -1811,6 +1812,7 @@ config_load(void)
|
||||
#ifdef USE_LANGUAGE
|
||||
plat_langid = 0x0409;
|
||||
#endif
|
||||
kbd_req_capture = 0;
|
||||
scale = 1;
|
||||
machine = machine_get_machine_from_internal_name("ibmpc");
|
||||
fpu_type = fpu_get_type(cpu_f, cpu, "none");
|
||||
@@ -1970,6 +1972,11 @@ save_general(void)
|
||||
else
|
||||
config_delete_var(cat, "sound_gain");
|
||||
|
||||
if (kbd_req_capture != 0)
|
||||
config_set_int(cat, "kbd_req_capture", kbd_req_capture);
|
||||
else
|
||||
config_delete_var(cat, "kbd_req_capture");
|
||||
|
||||
if (confirm_reset != 1)
|
||||
config_set_int(cat, "confirm_reset", confirm_reset);
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user