+void Window::platform_set_touch_input()
+{
+ WORD winver = LOWORD(GetVersion);
+ if(winver<_WIN32_WINNT)
+ {
+ touch_input = false;
+ throw runtime_error("no touch support");
+ }
+
+ if(touch_input)
+ RegisterTouchWindow(priv->window, 3); // TWF_FINETOUCH|TWF_WANTPALM
+ else
+ UnregisterTouchWindow(priv->window);
+}
+