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

Author Topic: Github Keyboard.hpp mistake  (Read 3113 times)

0 Members and 3 Guests are viewing this topic.

FRex

  • Hero Member
  • *****
  • Posts: 1848
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Github Keyboard.hpp mistake
« on: September 01, 2012, 09:57:26 pm »
Comment of line 144 in Keyboard.hpp at github says   "///< The F8 key" while it should say "///< The F9 key"  :D
Back to C++ gamedev with SFML in May 2023

Lo-X

  • Hero Member
  • *****
  • Posts: 618
    • View Profile
    • My personal website, with CV, portfolio and projects
Re: Github Keyboard.hpp mistake
« Reply #1 on: September 01, 2012, 10:19:03 pm »
Comment of line 144 in Keyboard.hpp at github says   "///< The F8 key" while it should say "///< The F9 key"  :D

You saved the day :p

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Github Keyboard.hpp mistake
« Reply #2 on: September 01, 2012, 11:23:12 pm »
Definitely :)
Laurent Gomila - SFML developer

FRex

  • Hero Member
  • *****
  • Posts: 1848
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: Github Keyboard.hpp mistake
« Reply #3 on: September 01, 2012, 11:25:17 pm »
By the way, are all valid keys guaranteed to be all natural numbers in [0,count) range?
Back to C++ gamedev with SFML in May 2023

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Github Keyboard.hpp mistake
« Reply #4 on: September 01, 2012, 11:31:40 pm »
Quote
By the way, are all valid keys guaranteed to be all natural numbers in [0,count) range?
Yes.
Laurent Gomila - SFML developer

FRex

  • Hero Member
  • *****
  • Posts: 1848
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: Github Keyboard.hpp mistake
« Reply #5 on: September 01, 2012, 11:32:57 pm »
Thanks.  :)
Back to C++ gamedev with SFML in May 2023

 

anything