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;
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);