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

Author Topic: Numberpad  (Read 3392 times)

0 Members and 1 Guest are viewing this topic.

TheMagicNumber

  • Jr. Member
  • **
  • Posts: 64
    • View Profile
Numberpad
« 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.

Finn

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
Numberpad
« Reply #1 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,

TheMagicNumber

  • Jr. Member
  • **
  • Posts: 64
    • View Profile
Numberpad
« Reply #2 on: September 10, 2010, 02:17:40 am »
I have those, I need this key:

Finn

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
Numberpad
« Reply #3 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 ;)

TheMagicNumber

  • Jr. Member
  • **
  • Posts: 64
    • View Profile
Numberpad
« Reply #4 on: September 10, 2010, 02:49:35 am »
I am using events.

Finn

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
Numberpad
« Reply #5 on: September 10, 2010, 03:32:19 am »
Then check, if the unicode is the one you want to and you're fine :)

TheMagicNumber

  • Jr. Member
  • **
  • Posts: 64
    • View Profile
Numberpad
« Reply #6 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.