SFML community forums

Help => Window => Topic started by: kaB00M on September 28, 2021, 09:06:58 pm

Title: Possible bug: recreating window during Touch event (Windows)
Post by: kaB00M on September 28, 2021, 09:06:58 pm
Hey!
Using win 8.1
Using SFML 2.5.1

I made an app that upon touch switches between full screen and windowed mode. I'm using 'window.close()' and 'window.create(...)' for this.
It stops working after some of tries.  After doing some digging, I found out the event.touch.finger value keeps increasing, even though I'm using a single finger during the whole process. When it reaches the value 10 the function stops working.
It seems the 'touchIDs' in the Windows implementation are not being properly reset during the 'window re-create' process.

Thank you for SFML.


Title: Re: Possible bug: recreating window during Touch event (Windows)
Post by: eXpl0it3r on September 29, 2021, 02:51:04 pm
Touch inputs for Windows haven't been implemented, as such whatever implementation you're using is not official reviewed and tested and might have bugs. As such I've moved the topic to the help section.

Did you by any chance build SFML from the feature/windows_touch (https://github.com/SFML/SFML/tree/feature/windows_touch) branch?
Title: Re: Possible bug: recreating window during Touch event (Windows)
Post by: kaB00M on September 29, 2021, 10:29:31 pm
Touch inputs for Windows haven't been implemented, as such whatever implementation you're using is not official reviewed and tested and might have bugs. As such I've moved the topic to the help section.

Did you by any chance build SFML from the feature/windows_touch (https://github.com/SFML/SFML/tree/feature/windows_touch) branch?

yes, I did.
So far it's working pretty good, beside the aforementioned problem!  ;)

Title: Re: Possible bug: recreating window during Touch event (Windows)
Post by: eXpl0it3r on October 10, 2021, 06:40:23 pm
Last I had a go of said branch, I noticed some issues as well.
If you find something that could be fixed on the branch and/or want to rebase it to the latest version, I'm happy to get things updated again, but it's currently not the top priority for SFML.