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

Author Topic: Keyboard.Code problems  (Read 3187 times)

0 Members and 1 Guest are viewing this topic.

TheEnigmist

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Keyboard.Code problems
« on: March 03, 2012, 08:11:01 pm »
I found a little bug, i don't know if is SFML related or project related, btw i've this simple if:
Code: [Select]
if (events.Type == sf::Event::KeyPressed && (events.Key.Code >= sf::Keyboard::A && events.Key.Code <= sf::Keyboard::Z))
inside this i print in console key's code (for test) and i've discovered that there are 3 non-alphabetic button that activate it!
My keyboard is this:
http://www.mygarage.ro/attachments/teste-si-review-uri/7297d1221598095-review-logitech-cordless-desktop-lx710-laser-hpim1677.jpg
and the 3 buttons are:
    Numpad DEL
    Num Lock
    search button in the middle-up of keyboard

Numpad DEL and Num Lock have 0 as code
search button in the middle-up of keyboard has 2 as code!
There is a way to fix this?

TheEnigmist

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Keyboard.Code problems
« Reply #1 on: March 04, 2012, 05:01:34 pm »
No1 checked this error or i'm alone here? :D

texus

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
    • TGUI
    • Email
Keyboard.Code problems
« Reply #2 on: March 04, 2012, 05:41:57 pm »
TGUI: C++ SFML GUI

TheEnigmist

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Keyboard.Code problems
« Reply #3 on: March 05, 2012, 12:33:29 am »
Oh yeah, search tab xD I didn't checked :P
So i've to w8 for fix this little bug!
Thx for reply!

 

anything