diff --git a/README.md b/README.md index 1f5053b..a205ebc 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,29 @@ LIB_INTERFACE(IInputMouseSubscriber, #include <...> ``` +#### Usage Runtime Binding and Modern C++ +``` +// My language binding +IInputMouseSubscriberFunctional test; +test.onButtonPress = [](AuUInt8 btn) +{ + +}; + +AuSPtr handle = AuUnsafeRaiiToShared(&test); +// use handle with an Aurora API +``` + +#### Usage Native +``` +struct MyEventHandler : public IInputMouseSubscriber +{ + void onButtonPress(AuUInt8 mb) override; + void onButtonTick(AuUInt8 mb) override; + void onButtonUp(AuUInt8 mb) override; +} + +``` ##### Not recommended for small projects and/or people with a shred of sanity left ##### Possibly useful for API developers \ No newline at end of file