MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ is_modifier()

MAYAFLUX_API bool MayaFlux::IO::is_modifier ( Keys  key)
noexcept

Checks if a key is a modifier key (e.g., Shift, Ctrl, Alt).

Parameters
keyThe key to check.
Returns
True if the key is a modifier, false otherwise.

Definition at line 70 of file Keys.cpp.

71{
72 return key == Keys::LShift || key == Keys::RShift || key == Keys::LCtrl || key == Keys::RCtrl || key == Keys::LAlt || key == Keys::RAlt || key == Keys::LSuper || key == Keys::RSuper;
73}

References LAlt, LCtrl, LShift, LSuper, RAlt, RCtrl, RShift, and RSuper.