diff options
| author | SND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2011-05-09 05:38:48 +0000 |
|---|---|---|
| committer | SND\edgbla_cp <SND\edgbla_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2011-05-09 05:38:48 +0000 |
| commit | 2f0f4c038428171244fd4e188a04df3aa07b241a (patch) | |
| tree | 04157330145c9fc1cbd28e2c61d50778b28a7b6d /plugins/dfinput/cfg.c | |
| parent | 8f4da5b653f91eaca82f02565a9932ae0ef371f8 (diff) | |
| download | pcsxr-2f0f4c038428171244fd4e188a04df3aa07b241a.tar.gz | |
dfinput, mouse (experimental).
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@66705 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'plugins/dfinput/cfg.c')
| -rw-r--r-- | plugins/dfinput/cfg.c | 6 |
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++) { |
