SecondaryClick
Introduction
Code Example - Detecting Click on a UI Element
// This would be checked every frame, such as in a screen's CustomActivity
var cursor = GuiManager.Cursor;
if(cursor.SecondaryClick && cursor.WindowOver == GumScreen.SomeGumObject)
{
// The gum object was right-clicked, so perform some action
}Last updated
Was this helpful?