SFML community forums

Help => Window => Topic started by: pridefight on December 30, 2011, 07:58:43 am

Title: why can't i get the sf::Key::Subtract event?
Post by: pridefight on December 30, 2011, 07:58:43 am
Trust me,first, my code are copied from the tutorial of the official site, so there's definitely no problem of the code, secondly, i am able to get other key events, like any letters, numbers, escape. but it's strange when i press + or - (which are represented by sf::Key::Subtract and sf::Key::Add),nothing happens? anyone met the same problem?


(probem solved, it's a keyboard layout problem, thanks for your ans...i don't know why but i can't post reply here, so i answer you from here)
Title: why can't i get the sf::Key::Subtract event?
Post by: Laurent on December 30, 2011, 08:15:40 am
What is your keyboard layout, and which operating system do you use?
Title: why can't i get the sf::Key::Subtract event?
Post by: Neomex on January 01, 2012, 11:55:10 am
It works with numpad keys, you were probably trying to use these next to backspace.
Also be sure to have Num Lock unpressed.