This allows the config updater to filter SETCONTROL commands and set joy button defaults to the user's config, if a slot is available.
A few logic highlights:
keynum1
is unset AND keynum2
is set (happens sometimes), shift keynum2
down to keynum1
.I'm 90% sure this code is okay. I'm tired to think of test cases right now -- will comment later.
This does generally work for me, but I didn't test with config'ing in-menu yet.