Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::view::KeyEvent Struct Reference

Rich key event with key code, modifiers, and repeat state. More...

#include <input_events.hpp>

Public Member Functions

bool isShiftDown () const
bool isCtrlDown () const
bool isAltDown () const
bool isCmdDown () const
bool isMainModifier () const

Public Attributes

KeyCode key = KeyCode::unknown
uint16_t modifiers = 0
bool is_down = true
 True for key-down, false for key-up.
bool is_repeat = false
 True if this is a key repeat.

Detailed Description

Rich key event with key code, modifiers, and repeat state.

Member Function Documentation

◆ isAltDown()

bool pulp::view::KeyEvent::isAltDown ( ) const
inline

◆ isCmdDown()

bool pulp::view::KeyEvent::isCmdDown ( ) const
inline

◆ isCtrlDown()

bool pulp::view::KeyEvent::isCtrlDown ( ) const
inline

◆ isMainModifier()

bool pulp::view::KeyEvent::isMainModifier ( ) const
inline

◆ isShiftDown()

bool pulp::view::KeyEvent::isShiftDown ( ) const
inline

Member Data Documentation

◆ is_down

bool pulp::view::KeyEvent::is_down = true

True for key-down, false for key-up.

◆ is_repeat

bool pulp::view::KeyEvent::is_repeat = false

True if this is a key repeat.

◆ key

KeyCode pulp::view::KeyEvent::key = KeyCode::unknown

◆ modifiers

uint16_t pulp::view::KeyEvent::modifiers = 0

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