Enabling accessibility and onscreen keyboard via config files and command line
This commit is contained in:
parent
e254400690
commit
4a11638d09
3 changed files with 6 additions and 0 deletions
|
|
@ -153,6 +153,8 @@ version, IMM(version)
|
||||||
wheelmouse, POSBOOL(wheely)
|
wheelmouse, POSBOOL(wheely)
|
||||||
windowed, NEGBOOL(fullscreen)
|
windowed, NEGBOOL(fullscreen)
|
||||||
windowsize, MULTI(parsertmp_windowsize)
|
windowsize, MULTI(parsertmp_windowsize)
|
||||||
|
mouse_accessibility, POSBOOL(mouseaccessibility)
|
||||||
|
onscreen_keyboard, POSBOOL(onscreen_keyboard)
|
||||||
%%
|
%%
|
||||||
|
|
||||||
void parse_one_option(struct cfginfo *restrict tmpcfg, const char *str, const char *opt, const char *restrict src)
|
void parse_one_option(struct cfginfo *restrict tmpcfg, const char *str, const char *opt, const char *restrict src)
|
||||||
|
|
|
||||||
|
|
@ -51,6 +51,8 @@ struct cfginfo
|
||||||
const char *use_print_config;
|
const char *use_print_config;
|
||||||
const char *use_sound;
|
const char *use_sound;
|
||||||
const char *wheely;
|
const char *wheely;
|
||||||
|
const char *mouseaccessibility;
|
||||||
|
const char *onscreen_keyboard;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define CFGINFO_MAXOFFSET (sizeof(struct cfginfo))
|
#define CFGINFO_MAXOFFSET (sizeof(struct cfginfo))
|
||||||
|
|
|
||||||
|
|
@ -21339,6 +21339,8 @@ static void setup_config(char *argv[])
|
||||||
SETBOOL(use_print_config);
|
SETBOOL(use_print_config);
|
||||||
SETBOOL(use_sound);
|
SETBOOL(use_sound);
|
||||||
SETBOOL(wheely);
|
SETBOOL(wheely);
|
||||||
|
SETBOOL(mouseaccessibility);
|
||||||
|
SETBOOL(onscreen_keyboard);
|
||||||
#undef SETBOOL
|
#undef SETBOOL
|
||||||
|
|
||||||
if(tmpcfg.parsertmp_windowsize)
|
if(tmpcfg.parsertmp_windowsize)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue