SFML community forums

Help => Window => Topic started by: Brussell on March 17, 2018, 08:05:17 pm

Title: Windows 10 Tablet does not trigger touch events
Post by: Brussell on March 17, 2018, 08:05:17 pm
Hello,
My issue is that running my program on a Windows 10 tablet
mouse events will fire after two quick taps, but touch does not register.

sf::Touch::isDown(0)
Never returns true

and event.type's never equal
sf::Event::TouchBegan
or
sf::Event::TouchEnded

Thanks for taking the time to read about my issue.
Title: Re: Windows 10 Tablet does not trigger touch events
Post by: eXpl0it3r on March 19, 2018, 09:52:15 am
The touch part isn't implemented (https://github.com/SFML/SFML/blob/master/src/SFML/Window/Win32/InputImpl.cpp#L232) yet for Windows.

Would be great if you could give the feature/windows_touch branch (https://github.com/SFML/SFML/tree/feature/windows_touch) a try, there are also pre-built binaries (https://www.sfml-dev.org/artifacts/by-branch/feature/windows_touch/).
Title: Re: Windows 10 Tablet does not trigger touch events
Post by: Brussell on April 17, 2018, 08:13:12 pm
Hey! It's working great on first try. Thanks for the reply.