Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Window
»
Numberpad
Print
Pages: [
1
]
Author
Topic: Numberpad (Read 3390 times)
0 Members and 1 Guest are viewing this topic.
TheMagicNumber
Jr. Member
Posts: 64
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.
Logged
Finn
Jr. Member
Posts: 90
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,
Logged
TheMagicNumber
Jr. Member
Posts: 64
Numberpad
«
Reply #2 on:
September 10, 2010, 02:17:40 am »
I have those, I need this key:
Logged
Finn
Jr. Member
Posts: 90
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
Logged
TheMagicNumber
Jr. Member
Posts: 64
Numberpad
«
Reply #4 on:
September 10, 2010, 02:49:35 am »
I am using events.
Logged
Finn
Jr. Member
Posts: 90
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
Logged
TheMagicNumber
Jr. Member
Posts: 64
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?
It is the same value given from pressing any Lock key, and pressing numpad 5 when numlock is off. This is definitely a problem.
Logged
Print
Pages: [
1
]
SFML community forums
»
Help
»
Window
»
Numberpad