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::KeyboardModifiers Struct Reference

Interface over keyboard modifier to query which key is pressed. More...

#include <ViewportTypes.h>

Public Member Functions

 KeyboardModifiers (const AZ::u32 keyModifiers)
 Explicit constructor to create a KeyboardModifier struct.
 
bool Alt () const
 Given the current keyboard modifiers, is the Alt key held.
 
bool Shift () const
 Given the current keyboard modifiers, is the Shift key held.
 
bool Ctrl () const
 Given the current keyboard modifiers, is the Ctrl key held.
 
bool None () const
 Given the current keyboard modifiers, are none being held.
 
bool IsHeld (KeyboardModifier keyboardModifier) const
 Given the current keyboard modifiers, is the specified modifier held.
 
bool operator== (const KeyboardModifiers &keyboardModifiers) const
 
bool operator!= (const KeyboardModifiers &keyboardModifiers) const
 

Public Attributes

AZ::u32 m_keyModifiers = 0
 Raw keyboard modifier state.
 

Detailed Description

Interface over keyboard modifier to query which key is pressed.


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