SFML community forums
Help => Window => Topic started by: ozwurld 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! :)
-
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.
-
~Thanks a million! ;D