over ride

This commit is contained in:
Fleeym 2024-02-16 02:44:02 +02:00
parent 3802af1e70
commit c65626892b

View file

@ -108,7 +108,7 @@ namespace geode {
virtual bool setup(InitArgs... args) = 0;
void keyDown(cocos2d::enumKeyCodes key) {
void keyDown(cocos2d::enumKeyCodes key) override {
if (key == cocos2d::enumKeyCodes::KEY_Escape) return this->onClose(nullptr);
if (key == cocos2d::enumKeyCodes::KEY_Space) return;
return FLAlertLayer::keyDown(key);