Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
InputCommon: Allow controller settings specified with input expresions. #8417
I've added the ability for input expressions to be used for the values of controller settings.
A common use would be a button that adjusts the speed of emulated Wii Remote Tilt/Swing but the possibilities are as endless as our button mappings.
With the new
A button to the right of each setting opens the familiar advanced mapping dialog.
I did some tests and found that the 'Range' option is acting weird. When using value from 2 to 9 on a checkbox, it keeps the box unchecked and adjusting range does nothing. Value 10 leaves the box unchecked for 'Range' values under 6 and a value of 20 leaves it unchecked under 'Range' values of 3. Values between 10 and 50 show this weird behaviour. 0 and 1 also show different behaviour but that is probably because of their boolean meaning.
Small nit, I think having the controller icon on the right side in the numeric fields would look better
@Miksel12 "Range" has always been a misnamed percentage scalar and I plan on removing it at some point now that the multiplication operator exists.
I agree about the controller icon being on the right. I'll change it.