fixed order of run event

This commit is contained in:
2022-01-24 19:29:19 +08:00
parent b6f37bef87
commit 6280ace5a5
3 changed files with 33 additions and 16 deletions

View File

@@ -180,9 +180,9 @@ namespace hgl
return EventProcResult::Continue;
}
virtual bool OnPressed(const KeyboardButton &kb){}
virtual bool OnReleased(const KeyboardButton &kb){}
virtual bool OnChar(const wchar_t &){}
virtual bool OnPressed(const KeyboardButton &kb){return(false);}
virtual bool OnReleased(const KeyboardButton &kb){return(false);}
virtual bool OnChar(const wchar_t &){return(false);}
};//class KeyboardEvent
class KeyboardStateEvent:public KeyboardEvent