ferrum: fix default config

This commit is contained in:
Hay1tsme 2023-09-25 03:27:08 -04:00
parent 8f4283b128
commit e776daa6fe
2 changed files with 36 additions and 20 deletions

View File

@ -54,24 +54,40 @@ port=3
; Mappings for the najv4 IO board. To disable JVS emulation and use ; Mappings for the najv4 IO board. To disable JVS emulation and use
; a real board, set enable to 0 in the "jvs" section. ; a real board, set enable to 0 in the "jvs" section.
[najv4] [najv4]
test=0x24 ; "Home" key ; "Home" key
coin=0x2D ; "Insert" key test=0x24
service=0x2E ; "Delete" key ; "Insert" key
up=0x26 ; Up arrow coin=0x2D
down=0x28 ; Down arrow ; "Delete" key
enter=0x0D ; "Enter" key service=0x2E
; Up arrow
up=0x26
; Down arrow
down=0x28
; Spacebar
enter=0x20
; Mappings for the gamepad. To disable gamepad eumlation and use ; Mappings for the gamepad
; a real pokken arcade controller, set enable to 0 in the "xinput" section
[gamepad] [gamepad]
dpad_up=0x57 ; W ; W
dpad_down=0x53 ; A dpad_up=0x57
dpad_left=0x41 ; S ; A
dpad_right=0x44 ; D dpad_down=0x53
button_a=0x4F ; O ; S
button_b=0x4B ; K dpad_left=0x41
button_x=0x49 ; I ; D
button_y=0x4A ; J dpad_right=0x44
trigger_l=0x51 ; Q ; O
trigger_r=0x45 ; E button_a=0x4F
button_start=0xA0 ; Left Shift ; K
button_b=0x4B
; I
button_x=0x49
; J
button_y=0x4A
; Q
trigger_l=0x51
; E
trigger_r=0x45
; Left Shift
button_start=0xA0

View File

@ -13,7 +13,7 @@ void ferrum_io_najv4_config_load(struct ferrum_najv4_config *cfg, const wchar_t
cfg->coin = GetPrivateProfileIntW(L"najv4", L"coin", VK_INSERT, filename); cfg->coin = GetPrivateProfileIntW(L"najv4", L"coin", VK_INSERT, filename);
cfg->up = GetPrivateProfileIntW(L"najv4", L"up", VK_UP, filename); cfg->up = GetPrivateProfileIntW(L"najv4", L"up", VK_UP, filename);
cfg->down = GetPrivateProfileIntW(L"najv4", L"down", VK_DOWN, filename); cfg->down = GetPrivateProfileIntW(L"najv4", L"down", VK_DOWN, filename);
cfg->enter = GetPrivateProfileIntW(L"najv4", L"enter", VK_RETURN, filename); cfg->enter = GetPrivateProfileIntW(L"najv4", L"enter", VK_SPACE, filename);
} }
void ferrum_io_gamepad_config_load(struct ferrum_gamepad_config *cfg, const wchar_t *filename) void ferrum_io_gamepad_config_load(struct ferrum_gamepad_config *cfg, const wchar_t *filename)