X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finput%2Fwindows%2Ftouchscreen.cpp;h=5820bdad5a7fa25f9f1172e20eee3abce95456ca;hb=a6eecc5117d91534aaf13e93baf64855f4b963c0;hp=d6e76e023c44174fa89eecb730130c64adf13fa6;hpb=2310eed6d8a73af7dd380eefb3ee7a30d277909a;p=libs%2Fgui.git diff --git a/source/input/windows/touchscreen.cpp b/source/input/windows/touchscreen.cpp index d6e76e0..5820bda 100644 --- a/source/input/windows/touchscreen.cpp +++ b/source/input/windows/touchscreen.cpp @@ -1,7 +1,7 @@ #define _WIN32_WINNT 0x0601 +#include "touchscreen.h" #include #include -#include "touchscreen.h" using namespace std; @@ -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); @@ -63,7 +63,5 @@ void Touchscreen::input_event(const Graphics::Window::Event &event) } } - - } // namespace Input } // namespace Msp