Luanti 5.17.0-dev
Loading...
Searching...
No Matches
MyEventReceiver::Keybinding Struct Reference
Collaboration diagram for MyEventReceiver::Keybinding:

Public Member Functions

 Keybinding ()=default
 Keybinding (const std::vector< KeyPress > &in_keys)
float getScale (KeyPress::InputType input_type) const

Public Attributes

std::vector< KeyPresskeys
struct { 
   float   keyboard_mouse = 1.0f 
   float   joystick = 1.0f 
scale

Constructor & Destructor Documentation

◆ Keybinding() [1/2]

MyEventReceiver::Keybinding::Keybinding ( )
default

◆ Keybinding() [2/2]

MyEventReceiver::Keybinding::Keybinding ( const std::vector< KeyPress > & in_keys)
inline

References keys.

Member Function Documentation

◆ getScale()

float MyEventReceiver::Keybinding::getScale ( KeyPress::InputType input_type) const
inline

Member Data Documentation

◆ joystick

float MyEventReceiver::Keybinding::joystick = 1.0f

◆ keyboard_mouse

float MyEventReceiver::Keybinding::keyboard_mouse = 1.0f

◆ keys

std::vector<KeyPress> MyEventReceiver::Keybinding::keys

Referenced by Keybinding().

◆ [struct]

struct { ... } MyEventReceiver::Keybinding::scale

Referenced by getScale().


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