C++ version of SneakyInput, for use with cocos2d-x