Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Android: Added sf::getNativeActivity() #1005
This is only implemented for Android builds and requires the user to use an implicit include for the sub-header.
This will trigger a compiler error on other platforms, if they try to include this header file.
To see actual usage, check the updated Android example.
Feel free to post comments regarding the actual code change as well as the doxygen additions (two aliases to make such notes easier in the future).
This PR addresses issue #680.
Despite me still not being 100% happy/sure about the extra header stuff, everything fine by me for now. So even if we still want to change this again, it's a really essential part to allow users to extend their code beyond the interfaces SFML provides. As such I'd rather merge it now than at any later point in time, even if that would mean potentially changing the API again.