How to show the cursor in C++?

, ,

I was trying the following in Activate method of my SystemComponent, but with no effect.

                                                    AzFramework::InputSystemCursorRequestBus::Event(AzFramework::InputDeviceMouse::Id, &AzFramework::InputSystemCursorRequests::SetSystemCursorState, AzFramework::SystemCursorState::UnconstrainedAndVisible);

LyShine Gem controls the cursor, you should use the UiCursorBus to show the cursor. eg:UiCursorBus::Broadcast(&UiCursorInterface::IncrementVisibleCounter);