0 Members and 1 Guest are viewing this topic.
HiCould you provide a complete and minimal example that reproduces the problem?And what is the name of the locale that you're using? (std::cout << std::locale().name())
The valid member is the one that matches the event type, for example event.key for a KeyPressed event. Trying to read any other member will result in an undefined behaviour (most likely: random or invalid values). So never try to use an event member that doesn't match its type. (...)Read the above paragraph once again and make sure that it's printed in your head, the sf::Event union causes too many problems to inadvertent programmers.
For example, if you received a KeyPressed event, then you must read the event.key member, all other members such as event.MouseMove or event.text will have undefined values.
French Baguette Massacre