]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/windows/touchscreen.cpp
Windows compilation fixes
[libs/gui.git] / source / input / windows / touchscreen.cpp
index d6e76e023c44174fa89eecb730130c64adf13fa6..73f67fe15b2f9d0cb599ee605db5af293fc15093 100644 (file)
@@ -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<HTOUCHINPUT>(event.lparam);
                unsigned n_points = LOWORD(event.wparam);