SFML community forums

Help => Window => Topic started by: ozwurld on July 21, 2014, 09:11:44 pm

Title: Implementation of Keyboard.hpp
Post 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!  :)
Title: Re: Implementation of Keyboard.hpp
Post by: Ixrec 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.
Title: Re: Implementation of Keyboard.hpp
Post by: ozwurld on July 21, 2014, 09:19:49 pm
~Thanks a million! ;D