diff --git a/README.md b/README.md index 4fc1f3d..72fbfe8 100644 --- a/README.md +++ b/README.md @@ -52,14 +52,11 @@ static AuSPtr MyMouseSubscriber() #### Usage: Runtime bindings and modern C++ ``` c++ // My language binding -IInputMouseSubscriberFunctional test; -test.onButtonPress = [](AuUInt8 btn) +auto test = AuMakeShared(); +test->onButtonPress = [](AuUInt8 btn) { }; - -AuSPtr handle = AuUnsafeRaiiToShared(&test); -// use handle with an Aurora API ``` ## Dependencies