mirror of
https://gitea.tendokyu.moe/TeamTofuShop/taitools.git
synced 2026-09-29 02:08:06 +03:00
29 lines
1.5 KiB
C
29 lines
1.5 KiB
C
#include <windows.h>
|
|
|
|
#include <assert.h>
|
|
#include <stddef.h>
|
|
#include <stdio.h>
|
|
|
|
#include "ll3io/config.h"
|
|
|
|
void ll3_io_config_load(struct ll3_input_config *cfg, const wchar_t *filename)
|
|
{
|
|
cfg->test = GetPrivateProfileIntW(L"usbio", L"test", VK_HOME, filename);
|
|
cfg->service = GetPrivateProfileIntW(L"usbio", L"service", VK_DELETE, filename);
|
|
cfg->select = GetPrivateProfileIntW(L"usbio", L"select", VK_END, filename);
|
|
cfg->enter = GetPrivateProfileIntW(L"usbio", L"enter", VK_RSHIFT, filename);
|
|
cfg->coin = GetPrivateProfileIntW(L"usbio", L"coin", VK_INSERT, filename);
|
|
|
|
cfg->btn1 = GetPrivateProfileIntW(L"usbio", L"rhythm_1", '1', filename);
|
|
cfg->btn2 = GetPrivateProfileIntW(L"usbio", L"rhythm_2", '2', filename);
|
|
cfg->btn3 = GetPrivateProfileIntW(L"usbio", L"rhythm_3", '3', filename);
|
|
cfg->btn4 = GetPrivateProfileIntW(L"usbio", L"rhythm_4", '4', filename);
|
|
cfg->btn5 = GetPrivateProfileIntW(L"usbio", L"rhythm_5", '5', filename);
|
|
cfg->btn6 = GetPrivateProfileIntW(L"usbio", L"rhythm_6", '6', filename);
|
|
cfg->btn7 = GetPrivateProfileIntW(L"usbio", L"rhythm_7", '7', filename);
|
|
cfg->btn8 = GetPrivateProfileIntW(L"usbio", L"rhythm_8", '8', filename);
|
|
cfg->btn9 = GetPrivateProfileIntW(L"usbio", L"rhythm_9", '9', filename);
|
|
cfg->btn_decide = GetPrivateProfileIntW(L"usbio", L"decide", '-', filename);
|
|
cfg->btn_cancel = GetPrivateProfileIntW(L"usbio", L"cancel", '=', filename);
|
|
}
|