SFML community forums

Help => Window => Topic started by: TheMagicNumber on September 10, 2010, 01:17:18 am

Title: Numberpad
Post by: TheMagicNumber on September 10, 2010, 01:17:18 am
Does anybody know the keycode for the numpad decimal/delete? I can't find it, and would love to have it.
Title: Numberpad
Post by: Finn on September 10, 2010, 02:16:23 am
sf::Key::Add,
sf::Key::Subtract,
sf::Key::Multiply,
sf::Key::Divide,
  sf::Key::Numpad0,
  sf::Key::Numpad1,
  sf::Key::Numpad2,
  sf::Key::Numpad3,
  sf::Key::Numpad4,
  sf::Key::Numpad5,
  sf::Key::Numpad6,
  sf::Key::Numpad7,
  sf::Key::Numpad8,
  sf::Key::Numpad9,
Title: Numberpad
Post by: TheMagicNumber on September 10, 2010, 02:17:40 am
I have those, I need this key:
(http://i.imgur.com/v1v66.png)
Title: Numberpad
Post by: Finn on September 10, 2010, 02:48:57 am
Uhm...I don't know this one, but you could use events instead. There you get the unicode for this key ;)
Title: Numberpad
Post by: TheMagicNumber on September 10, 2010, 02:49:35 am
I am using events.
Title: Numberpad
Post by: Finn on September 10, 2010, 03:32:19 am
Then check, if the unicode is the one you want to and you're fine :)
Title: Numberpad
Post by: TheMagicNumber on September 10, 2010, 09:40:50 pm
It is set to zero. e.Key.Code, e.Text.Unicode, both. Why can't I use this key? :P

It is the same value given from pressing any Lock key, and pressing numpad  5 when numlock is off. This is definitely a problem.