Open 3D Engine AzToolsFramework API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AzToolsFramework::ViewportInteraction::MouseButtons Struct Reference

Interface over mouse buttons to query which button is pressed. More...

#include <ViewportTypes.h>

Public Member Functions

 MouseButtons (const AZ::u32 mouseButtons)
 Explicit constructor to create a MouseButton struct.
 
bool Left () const
 Given the current mouse state, is the left mouse button held.
 
bool Middle () const
 Given the current mouse state, is the middle mouse button held.
 
bool Right () const
 Given the current mouse state, is the right mouse button held.
 
bool None () const
 Given the current mouse state, are no mouse buttons held.
 
bool Any () const
 Given the current mouse state, are any mouse buttons held.
 

Public Attributes

AZ::u32 m_mouseButtons = 0
 Current mouse button state (flags).
 

Detailed Description

Interface over mouse buttons to query which button is pressed.


The documentation for this struct was generated from the following file: