I thought of another option: convert all the relevant prefs to static prefs, and then change
EventRadiusPrefs so it holds a bunch of function pointers.
sMouseEventRadiusPrefs would hold function pointers to the getters for the
mouse prefs, and
sTouchEventRadiusPrefs would hold function pointers to the getters for the
touch prefs. Both of these structs would be able to be constructed statically.
I still would prefer to replace the prefs in favour of code constants, but if that's not possible, I think the above is the next best option, because it wouldn't require major logic changes that the boolean flags approach would require.