Created
March 21, 2023 23:18
-
-
Save AMZN-alexpete/e839991f0432e203ea0a1896ff59fc1a to your computer and use it in GitHub Desktop.
EBus Event Lambda Syntax Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Example of using a Lambda to perform multiple actions on an event bus (ebus) | |
SystemCursorState state; | |
AzFramework::InputSystemCursorRequestBus::Event( AzFramework::InputDeviceMouse::Id, | |
[&](auto requests) | |
{ | |
systemCursorState = requests->GetSystemCursorState(); | |
requests->SetSystemCursorState(AzFramework::SystemCursorState::UnconstrainedAndVisible); | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment