added touch emulator

This commit is contained in:
2022-01-04 03:46:30 -05:00
parent 8702cc9e99
commit c0a5f97ea9
7 changed files with 198 additions and 4 deletions

View File

@ -27,6 +27,20 @@ void mercury_dll_config_load(
filename);
}
void touch_config_load(
struct touch_config *cfg,
const wchar_t *filename)
{
assert(cfg != NULL);
assert(filename != NULL);
GetPrivateProfileIntW(
L"touch",
L"enable",
1,
filename);
}
void mercury_hook_config_load(
struct mercury_hook_config *cfg,
const wchar_t *filename)
@ -40,4 +54,5 @@ void mercury_hook_config_load(
io4_config_load(&cfg->io4, filename);
gfx_config_load(&cfg->gfx, filename);
mercury_dll_config_load(&cfg->dll, filename);
touch_config_load(&cfg->touch, filename);
}