From e776daa6fe28f9b2de796bae355591810daafc8c Mon Sep 17 00:00:00 2001 From: Kevin Trocolli Date: Mon, 25 Sep 2023 03:27:08 -0400 Subject: [PATCH] ferrum: fix default config --- dist/ferrum/bananatools.ini | 54 ++++++++++++++++++++++++------------- ferrumio/config.c | 2 +- 2 files changed, 36 insertions(+), 20 deletions(-) diff --git a/dist/ferrum/bananatools.ini b/dist/ferrum/bananatools.ini index edcbcaa..c90edb7 100644 --- a/dist/ferrum/bananatools.ini +++ b/dist/ferrum/bananatools.ini @@ -54,24 +54,40 @@ port=3 ; Mappings for the najv4 IO board. To disable JVS emulation and use ; a real board, set enable to 0 in the "jvs" section. [najv4] -test=0x24 ; "Home" key -coin=0x2D ; "Insert" key -service=0x2E ; "Delete" key -up=0x26 ; Up arrow -down=0x28 ; Down arrow -enter=0x0D ; "Enter" key +; "Home" key +test=0x24 +; "Insert" key +coin=0x2D +; "Delete" key +service=0x2E +; Up arrow +up=0x26 +; Down arrow +down=0x28 +; Spacebar +enter=0x20 -; Mappings for the gamepad. To disable gamepad eumlation and use -; a real pokken arcade controller, set enable to 0 in the "xinput" section +; Mappings for the gamepad [gamepad] -dpad_up=0x57 ; W -dpad_down=0x53 ; A -dpad_left=0x41 ; S -dpad_right=0x44 ; D -button_a=0x4F ; O -button_b=0x4B ; K -button_x=0x49 ; I -button_y=0x4A ; J -trigger_l=0x51 ; Q -trigger_r=0x45 ; E -button_start=0xA0 ; Left Shift +; W +dpad_up=0x57 +; A +dpad_down=0x53 +; S +dpad_left=0x41 +; D +dpad_right=0x44 +; O +button_a=0x4F +; 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 diff --git a/ferrumio/config.c b/ferrumio/config.c index 8d17634..4608c01 100644 --- a/ferrumio/config.c +++ b/ferrumio/config.c @@ -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->up = GetPrivateProfileIntW(L"najv4", L"up", VK_UP, 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)