Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Possible bug: recreating window during Touch event (Windows)  (Read 6508 times)

0 Members and 1 Guest are viewing this topic.

kaB00M

  • Full Member
  • ***
  • Posts: 101
    • View Profile
    • Caffeware
    • Email
Possible bug: recreating window during Touch event (Windows)
« 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.


« Last Edit: September 29, 2021, 10:31:49 pm by kaB00M »



eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10815
    • View Profile
    • development blog
    • Email
Re: Possible bug: recreating window during Touch event (Windows)
« Reply #1 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 branch?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

kaB00M

  • Full Member
  • ***
  • Posts: 101
    • View Profile
    • Caffeware
    • Email
Re: Possible bug: recreating window during Touch event (Windows)
« Reply #2 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 branch?

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




eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10815
    • View Profile
    • development blog
    • Email
Re: Possible bug: recreating window during Touch event (Windows)
« Reply #3 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.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/