namespace Input {
Touchscreen::Touchscreen(Graphics::Window &w):
+ Device(TOUCH_SURFACE),
window(w)
{
+ if(!is_available())
+ throw device_not_available("Touchscreen");
+
name = "Touchscreen";
window.set_touch_input(true);
void Touchscreen::touch_up(unsigned id)
{
unsigned i = map_point_id(id);
- set_button_state(i, true, false);
+ set_button_state(i, false, true);
active_points[i] = UNUSED;
}