Skip to content

Instantly share code, notes, and snippets.

@AMZN-alexpete
Created March 21, 2023 23:18
Show Gist options
  • Save AMZN-alexpete/e839991f0432e203ea0a1896ff59fc1a to your computer and use it in GitHub Desktop.
Save AMZN-alexpete/e839991f0432e203ea0a1896ff59fc1a to your computer and use it in GitHub Desktop.
EBus Event Lambda Syntax Example
// 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