NBlood
NBlood copied to clipboard
Controller support for menus
gamepads can't be used in menus at all
Gamepad support is broken atm
Controller support works out-of-the-box in eduke32 now. The changes were added somewhere between the 2019-04-08 and 2019-08-20 versions.
My Xinput device (GPD Win 2) has default bindings that work in menus and game. Perhaps rebasing nblood from upstream eduke32 would magically add support.
How can you select 12 different weapons with a controller?
@CommonLoon102 usually by cycling through them with the L and R buttons. Similar to using the mouse wheel in modern games.
Rebasing to the latest eduke32 is not enough (mapedit branch already rebased to recent revision with controller support). Some additional coding on my side is required as well (update input code, add controller to the menu, etc)
@nvllsvm That must be very slow. There should be a smart solution, a weapon wheel or something. Not the one which is in Fresh Supply, that is lame and also slow. But something like the buy menu in CSGO.
@CommonLoon102 should probably open a separate issue. We've gone off topic here.
I've actually implemented partial controller support in my NBlood fork NXBlood Its not kept as up to date as it probably should have duo to me wanting to rework it after the merge of mapedit into master
ignore the bottom most change it was an attempt at fixing something with limited knowledge of the codebase
Just out of curiosity, how did you solve going back one level in the menu? NBlood doesn't have a back button like EDuke32 does (in the top left corner). You can use Esc or right mouse button, but what do you use in case of the controller to go back?
just like the right mouse button I just set the Escape event
else if (JOYSTICK_GetButtons()&SWITCH_BUTTON_B)
{
event.at0 = kMenuEventEscape;
JOYSTICK_ClearButton(SWITCH_BUTTON_B);
}
I've actually implemented partial controller support in my NBlood fork NXBlood 1 Its not kept as up to date as it probably should have duo to me wanting to rework it after the merge of mapedit into master
ignore the bottom most change it was an attempt at fixing something with limited knowledge of the codebase
The linked repo is down. Do you still have these changes available in a place that we could view? I'm attempting to get NBlood (all engines) running on a similarly embedded device which only uses a gamepad as primary input.
The linked repo is down. Do you still have these changes available in a place that we could view? I'm attempting to get NBlood (all engines) running on a similarly embedded device which only uses a gamepad as primary input.
yeah sorry for that I haven't had time to maintain the Switch port for Blood and because it was seemingly unmaintainable from my perspective I deleted the repo
In a previous comment
just like the right mouse button I just set the Escape event
else if (JOYSTICK_GetButtons()&SWITCH_BUTTON_B) { event.at0 = kMenuEventEscape; JOYSTICK_ClearButton(SWITCH_BUTTON_B); }
I have talked about the exact actions I took to achieve gamepad support in menus SWITCH_BUTTON_B in this case is an macro to the bit that signifies if the buttoin is pressed.
This has been fixed since https://github.com/nukeykt/NBlood/pull/642