Luanti 5.17.0-dev
Loading...
Searching...
No Matches
KeyPressEvent Struct Reference

Generalized keypress event. More...

#include <keycode.h>

Collaboration diagram for KeyPressEvent:

Public Member Functions

 KeyPressEvent (const SEvent &event)
 Construct a KeyPressEvent from an Irrlicht event. User events (e.g. touchscreen input) is not handled.
 operator bool () const
bool isPressed () const

Public Attributes

KeyPress key
float analog_value = 0

Detailed Description

Generalized keypress event.

Constructor & Destructor Documentation

◆ KeyPressEvent()

KeyPressEvent::KeyPressEvent ( const SEvent & event)

Construct a KeyPressEvent from an Irrlicht event. User events (e.g. touchscreen input) is not handled.

References analog_value, g_settings, key, and rangelim().

Here is the call graph for this function:

Member Function Documentation

◆ isPressed()

bool KeyPressEvent::isPressed ( ) const
inline

References analog_value.

Referenced by GUIFormSpecMenu::OnEvent().

Here is the caller graph for this function:

◆ operator bool()

KeyPressEvent::operator bool ( ) const
inline

References key.

Member Data Documentation

◆ analog_value

float KeyPressEvent::analog_value = 0

Referenced by KeyPressEvent(), and isPressed().

◆ key

KeyPress KeyPressEvent::key

Referenced by KeyPressEvent(), and operator bool().


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