optional options that are optional that can be optionally turned off or on

how can i make optional controls (a.k.a. tilt or touch) to be turned on and off? i have the buttons designed, and i can turn them on, but im confused on how to be able to turn them on and off again.