/* Determine if the display is currently being touched. 
Checks if the user is currently touching the display, with debouncing. */
static bool touch_interface_is_touched(void)
/* Determine if the display is currently being touched. 
Checks if the user is currently touching the display, with debouncing. */
static bool touch_interface_is_touched(void)
{
	uint8_t steady_samples = 0;
	bool touch_state = false;
	while (steady_samples < 5) {
		steady_samples++;
		if (touch_state != rtouch_is_touched()) {
			touch_state	= rtouch_is_touched();
			steady_samples = 0;
		}
		delay_ms(10);
	}
	return touch_state;
}