fix event

This commit is contained in:
2025-02-26 15:09:30 +03:00
parent 121d4af325
commit 7e419c9b79
12 changed files with 29 additions and 85 deletions

View File

@@ -18,12 +18,9 @@ namespace VE
public:
virtual void on_attach() {};
virtual void on_detach() {};
virtual void render() {};
virtual void on_event(event e) {};
void set_event_fn(const event_fn<event>& fn) { execute = fn; };
protected:
event_fn<event> execute;
};