From 4a11638d09aab748db49dff4766d9c6ac08c8d35 Mon Sep 17 00:00:00 2001 From: Pere Pujal i Carabantes Date: Tue, 1 Mar 2011 09:34:09 +0000 Subject: [PATCH] Enabling accessibility and onscreen keyboard via config files and command line --- src/parse.gperf | 2 ++ src/parse.h | 2 ++ src/tuxpaint.c | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/parse.gperf b/src/parse.gperf index 6c4e71e09..1c0b5cdea 100644 --- a/src/parse.gperf +++ b/src/parse.gperf @@ -153,6 +153,8 @@ version, IMM(version) wheelmouse, POSBOOL(wheely) windowed, NEGBOOL(fullscreen) 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) diff --git a/src/parse.h b/src/parse.h index 8b11a0538..7ba8fc62b 100644 --- a/src/parse.h +++ b/src/parse.h @@ -51,6 +51,8 @@ struct cfginfo const char *use_print_config; const char *use_sound; const char *wheely; + const char *mouseaccessibility; + const char *onscreen_keyboard; }; #define CFGINFO_MAXOFFSET (sizeof(struct cfginfo)) diff --git a/src/tuxpaint.c b/src/tuxpaint.c index 588142a42..11310943f 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -21339,6 +21339,8 @@ static void setup_config(char *argv[]) SETBOOL(use_print_config); SETBOOL(use_sound); SETBOOL(wheely); + SETBOOL(mouseaccessibility); + SETBOOL(onscreen_keyboard); #undef SETBOOL if(tmpcfg.parsertmp_windowsize)