summaryrefslogtreecommitdiff
path: root/plugins/dfinput/cfg.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/dfinput/cfg.c')
-rw-r--r--plugins/dfinput/cfg.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/dfinput/cfg.c b/plugins/dfinput/cfg.c
index 64c60a2d..3ac9dfa8 100644
--- a/plugins/dfinput/cfg.c
+++ b/plugins/dfinput/cfg.c
@@ -26,6 +26,7 @@ static void SetDefaultConfig() {
memset(&g.cfg, 0, sizeof(g.cfg));
g.cfg.Threaded = 1;
+ g.cfg.HideCursor = 0;
g.cfg.PadDef[0].DevNum = 0;
g.cfg.PadDef[1].DevNum = 1;
@@ -128,7 +129,9 @@ void LoadPADConfig() {
while (fgets(buf, 256, fp) != NULL) {
if (strncmp(buf, "Threaded=", 9) == 0) {
g.cfg.Threaded = atoi(&buf[9]);
- } else if (strncmp(buf, "[PAD", 4) == 0) {
+ } else if (strncmp(buf, "HideCursor=", 11) == 0) {
+ g.cfg.HideCursor = atoi(&buf[11]);
+ } else if (strncmp(buf, "[PAD", 4) == 0) {
current = atoi(&buf[4]) - 1;
if (current < 0) {
current = 0;
@@ -281,6 +284,7 @@ void SavePADConfig() {
fprintf(fp, "[CONFIG]\n");
fprintf(fp, "Threaded=%d\n", g.cfg.Threaded);
+ fprintf(fp, "HideCursor=%d\n", g.cfg.HideCursor);
fprintf(fp, "\n");
for (i = 0; i < 2; i++) {