X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgraphics%2Fwindow.cpp;h=5bc9a358e2786d99e7ba7e4be1c63b6dce20afa8;hb=f6ca714e2258f4cad433801c88264947d4c2d14c;hp=ebdc578e14d44524f982c74e29beb2503a7c0c99;hpb=e5e2d5b41f8977bc60eca5300f3da6efbbd5786a;p=libs%2Fgui.git diff --git a/source/graphics/window.cpp b/source/graphics/window.cpp index ebdc578..5bc9a35 100644 --- a/source/graphics/window.cpp +++ b/source/graphics/window.cpp @@ -9,6 +9,8 @@ namespace Msp { namespace Graphics { WindowOptions::WindowOptions(): + x(0), + y(0), width(640), height(480), fullscreen(false), @@ -37,6 +39,7 @@ void Window::init() { visible = false; kbd_autorepeat = true; + touch_input = false; resizing = false; priv = new Private; @@ -85,6 +88,12 @@ void Window::set_keyboard_autorepeat(bool r) kbd_autorepeat = r; } +void Window::set_touch_input(bool t) +{ + touch_input = t; + platform_set_touch_input(); +} + void Window::show() { platform_show();