X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Finput%2Fwindows%2Ftouchscreen.cpp;h=73f67fe15b2f9d0cb599ee605db5af293fc15093;hb=8d865a51910c5ef9643a7f9a32e7cab5ec5359e4;hp=d6e76e023c44174fa89eecb730130c64adf13fa6;hpb=9c7ae47da64904c2aa9a9969870ca8befebe7d02;p=libs%2Fgui.git diff --git a/source/input/windows/touchscreen.cpp b/source/input/windows/touchscreen.cpp index d6e76e0..73f67fe 100644 --- a/source/input/windows/touchscreen.cpp +++ b/source/input/windows/touchscreen.cpp @@ -10,7 +10,7 @@ namespace Input { bool Touchscreen::is_available() { - // Must have at least Windows 7 (WinNT 6.1) for WM_TOUCHMOVE + // Must have at least Windows 7 (WinNT 6.1) for WM_TOUCH OSVERSIONINFOEX version; version.dwOSVersionInfoSize = sizeof(version); version.dwMajorVersion = 6; @@ -32,7 +32,7 @@ bool Touchscreen::is_available() void Touchscreen::input_event(const Graphics::Window::Event &event) { - if(event.msg==WM_TOUCHMOVE) + if(event.msg==WM_TOUCH) { HTOUCHINPUT handle = reinterpret_cast(event.lparam); unsigned n_points = LOWORD(event.wparam);