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

Author Topic: Implementation of Keyboard.hpp  (Read 1891 times)

0 Members and 1 Guest are viewing this topic.

ozwurld

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Email
Implementation of Keyboard.hpp
« on: July 21, 2014, 09:11:44 pm »
Hey all,

Dont know if im posting this in the right place, but im looking for the implementation of the header file
Keyboard.hpp
i reckon it should be
Keyboard.cpp
but cant find such a file anywhere, i just need to know how
isKeyPressed(Key key)
has been implemented.

Thanks!  :)

Ixrec

  • Hero Member
  • *****
  • Posts: 1241
    • View Profile
    • Email
Re: Implementation of Keyboard.hpp
« Reply #1 on: July 21, 2014, 09:18:28 pm »
That would be: https://github.com/SFML/SFML/blob/master/src/SFML/Window/Keyboard.cpp though you'll have to follow a couple of #includes to get to the real implementation.

For Windows, the implementation bottoms out at this function: https://github.com/SFML/SFML/blob/master/src/SFML/Window/Win32/InputImpl.cpp#L46  The other platforms are in similar locations.

ozwurld

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • Email
Re: Implementation of Keyboard.hpp
« Reply #2 on: July 21, 2014, 09:19:49 pm »
~Thanks a million! ;D

 

anything