mupen64plus / mupen64plus-input-sdl

Input plugin for Mupen64Plus v2.0 project using SDL. This is derived from the original Mupen64 blight_input plugin.
GNU General Public License v2.0
43 stars 70 forks source link

Feature: Modifier syntax (C-buttons) #99

Open Slider-Whistle opened 3 years ago

Slider-Whistle commented 3 years ago

It might not be a typical setup, but I've configured a wiimote+nunchuk combo to work with mupen64plus with one minor issue; there aren't enough buttons between the two to support both a D-pad and four C-buttons. This is relatively minor since not all games even use the D-pad in the first place, but I thought it'd be cool if I could hold down the nunchuk's (singular) C-button to act as a modifier to either the analogue stick's inputs, or the D-pad.

This doesn't have any established precedent since the N64 virtual console has no wiimote/nunchuk support in the first place, but I always liked to think that this was the intention of the "C" button being labelled how it was. I think it should work pretty intuitively as, as far as I know, there's no N64 game which needs you to use the D-pad and C-buttons simultaneously.

As for the configuration syntax, I think it could look something like this:

DPad R = "button($right)"
DPad L = "button($left)"
DPad D = "button($down)"
DPad U = "button($up)"

C Button R = "button($C)+button($right)"
C Button L = "button($C)+button($left)"
C Button D = "button($C)+button($down)"
C Button U = "button($C)+button($up)"

No issue if this is turned down immediately, seeing as this is a completely imaginary setup which wasn't implemented with the actual Wii. This kind of feature is usually a driver-level type of thing and MoltenGamepad still has a standing issue on it (https://github.com/jgeumlek/MoltenGamepad/issues/36), so I'll just bug them about it next.

Slider-Whistle commented 3 years ago

Nevermind, binding L&R to -&+ fucking sucks lmao Maybe somebody else would still want it.