Add example allocation of the struct example for the hell of it

This commit is contained in:
Reece Wilson 2021-10-07 00:23:55 +01:00
parent 942d3442e9
commit e1ea73c70c

View File

@ -48,8 +48,9 @@ struct MyEventHandler : public IInputMouseSubscriber
void onButtonPress(AuUInt8 mb) override;
void onButtonTick(AuUInt8 mb) override;
void onButtonUp(AuUInt8 mb) override;
}
};
auto handle = AuMakeShared<MyEventHandler>();
```
##### Not recommended for small projects and/or people with a shred of sanity left