You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A default configuration should be provided (e.g. the current one), together with a set of default alternatives. It should be possible to combine configuration file (e.g. 'portrait d-pad plus button swapping').
The syntax should be as simple as possible, without being exceedingly verbose. We probably won't need more than a couple of directives:
wii button or axis specification = action specification
for the mappings themselves, and
#include 'other configuration'
Both the Wii button/axis specification and the corresponding action should have clearly readable names; we can base them on the defines, but to improve readability and writeability we might want to allow both _ and as separator for components, and prefixes such as XWII or BTN could be made optional, also allowing key and button as synonyms. So, for example, the swap could be written as:
I might be over-engineering a little bit here, but I got another idea that takes this one step further: What if users could define the virtual joystick themselves?
We could add mappings from axes to buttons or vice versa. Some examples:
axis 1 max = button 3 (if real axis 1 gets (close) to its maximum value, "press" virtual button 3)
button 1 = axis 2 min (if button 1 is pressed, set value of virtual axis 2 to its minimum value)
button 2 = button a
axis 3 = axis 5
That would make it possible to create virtual axes(like in my previous patch) and also virtual buttons.
I don't see why we shouldn't allow it, although I'd be very surprised if the mapping axis -> button ever finds an actual use. Unless of course supporting it would make the code too complex.
I don't particularly like the proposed syntax with max/min though. An axis should probably map to a pair of buttons, and conversely we'd need a pair of buttons to create another axis, plus maybe the keywod none to indicate a dead map.
A nice thing to have would be a method to configure the button mapping, to work around limitations in clients that do not support it themselves.
Examples of what this should allow achieving:
A default configuration should be provided (e.g. the current one), together with a set of default alternatives. It should be possible to combine configuration file (e.g. 'portrait d-pad plus button swapping').
The syntax should be as simple as possible, without being exceedingly verbose. We probably won't need more than a couple of directives:
for the mappings themselves, and
Both the Wii button/axis specification and the corresponding action should have clearly readable names; we can base them on the defines, but to improve readability and writeability we might want to allow both
as separator for components, and prefixes such as
_
andXWII
orBTN
could be made optional, also allowingkey
andbutton
as synonyms. So, for example, the swap could be written as:but also
or even
The text was updated successfully, but these errors were encountered: