In various embodiments, changing the function involves disabling an input
device, disabling an output device, changing a display mode of the output
device from portrait to landscape, or increasing volume of the output
device. In an embodiment, the change of the function is delayed by a time
period, and the delay for changing the output device is longer than the
delay for changing the input device. If the electronic device is upright,
the input device and the output device are enabled. The tilt is sensed by
a sensing device, signals from the sensing device are filtered, and a
delay is introduced. In this way, premature disabling or enabling of the
electronic device is avoided.