Nameless Engine
Loading...
Searching...
No Matches
ne::KeyboardModifiers Class Reference

#include <KeyboardKey.hpp>

Public Member Functions

 KeyboardModifiers (int iModifiers)
 
bool isShiftPressed () const
 
bool isControlPressed () const
 
bool isAltPressed () const
 
bool isSuperPressed () const
 
bool isCapsLockPressed () const
 
bool isNumLockPressed () const
 

Private Attributes

int iModifiers
 

Detailed Description

Provides a mapping from GLFW keyboard modifiers to a class.

Constructor & Destructor Documentation

◆ KeyboardModifiers()

ne::KeyboardModifiers::KeyboardModifiers ( int  iModifiers)
inlineexplicit

Constructor.

Parameters
iModifiersGLFW modifiers value.

Member Function Documentation

◆ isAltPressed()

bool ne::KeyboardModifiers::isAltPressed ( ) const
inline

Whether the Alt key is pressed or not.

Returns
'true' if the Alt key is pressed, 'false' otherwise.

◆ isCapsLockPressed()

bool ne::KeyboardModifiers::isCapsLockPressed ( ) const
inline

Whether the Caps Lock key is pressed or not.

Returns
'true' if the Caps Lock key is pressed, 'false' otherwise.

◆ isControlPressed()

bool ne::KeyboardModifiers::isControlPressed ( ) const
inline

Whether the Control (Ctrl) key is pressed or not.

Returns
'true' if the Control (Ctrl) key is pressed, 'false' otherwise.

◆ isNumLockPressed()

bool ne::KeyboardModifiers::isNumLockPressed ( ) const
inline

Whether the Num Lock key is pressed or not.

Returns
'true' if the Num Lock key is pressed, 'false' otherwise.

◆ isShiftPressed()

bool ne::KeyboardModifiers::isShiftPressed ( ) const
inline

Whether the Shift key is pressed or not.

Returns
'true' if the Shift key is pressed, 'false' otherwise.

◆ isSuperPressed()

bool ne::KeyboardModifiers::isSuperPressed ( ) const
inline

Whether the Super key is pressed or not.

Returns
'true' if the Super key is pressed, 'false' otherwise.

Member Data Documentation

◆ iModifiers

int ne::KeyboardModifiers::iModifiers
private

GLFW modifiers value.


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