2023-01-03 05:35:53 +01:00
|
|
|
#include <windows.h>
|
|
|
|
|
|
|
|
#include <assert.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#include "taikoio/config.h"
|
|
|
|
|
2023-07-11 05:21:36 +02:00
|
|
|
void taiko_io_config_load(struct taiko_input_config *cfg, const wchar_t *filename)
|
2023-01-03 05:35:53 +01:00
|
|
|
{
|
2023-07-11 05:21:36 +02:00
|
|
|
cfg->test = GetPrivateProfileIntW(L"usio", L"test", VK_HOME, filename);
|
|
|
|
cfg->service = GetPrivateProfileIntW(L"usio", L"service", VK_DELETE, filename);
|
|
|
|
cfg->coin = GetPrivateProfileIntW(L"usio", L"coin", VK_INSERT, filename);
|
|
|
|
cfg->up = GetPrivateProfileIntW(L"usio", L"up", VK_UP, filename);
|
|
|
|
cfg->down = GetPrivateProfileIntW(L"usio", L"down", VK_DOWN, filename);
|
|
|
|
cfg->enter = GetPrivateProfileIntW(L"usio", L"enter", VK_RETURN, filename);
|
|
|
|
|
|
|
|
cfg->p1_rim_l = GetPrivateProfileIntW(L"drum", L"p1_rim_l", 'Z', filename);
|
2024-02-11 03:29:59 +01:00
|
|
|
cfg->p1_center_l = GetPrivateProfileIntW(L"drum", L"p1_center_l", 'X', filename);
|
|
|
|
cfg->p1_center_r = GetPrivateProfileIntW(L"drum", L"p1_center_r", 'C', filename);
|
|
|
|
cfg->p1_rim_r = GetPrivateProfileIntW(L"drum", L"p1_rim_r", 'V', filename);
|
2023-07-11 05:21:36 +02:00
|
|
|
|
|
|
|
cfg->p2_rim_l = GetPrivateProfileIntW(L"drum", L"p2_rim_l", 'U', filename);
|
2024-02-11 03:29:59 +01:00
|
|
|
cfg->p2_center_l = GetPrivateProfileIntW(L"drum", L"p2_center_l", 'I', filename);
|
|
|
|
cfg->p2_center_r = GetPrivateProfileIntW(L"drum", L"p2_center_r", 'O', filename);
|
|
|
|
cfg->p2_rim_r = GetPrivateProfileIntW(L"drum", L"p2_rim_r", 'P', filename);
|
2023-01-03 05:35:53 +01:00
|
|
|
}
|