X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finput%2Ftouchscreen.cpp;h=4facb8c60e44f9b662c636a225946923245497dc;hb=49e19af2c599e7316b5a01983adc040421429f86;hp=18e795fe83a91da20451ef42e85a17423cc2373c;hpb=ca166b9b8a41fd34e901b16da2cc4c1ae732cbcf;p=libs%2Fgui.git diff --git a/source/input/touchscreen.cpp b/source/input/touchscreen.cpp index 18e795f..4facb8c 100644 --- a/source/input/touchscreen.cpp +++ b/source/input/touchscreen.cpp @@ -8,6 +8,9 @@ namespace Input { Touchscreen::Touchscreen(Graphics::Window &w): window(w) { + if(!is_available()) + throw runtime_error("touchscreen not available"); + name = "Touchscreen"; window.set_touch_input(true);