avoid use of UINT8_MAX, to fix a build error reported in #3085
fix: save joystick axis config on change (see #3085)