class input

Declaration

class input { /* full declaration omitted */ };

Declared at: include/ekg/service/input.hpp:37

Member Variables

protected std::unordered_map<std::string, std::vector<std::string>> input_bind_map = {}
protected std::unordered_map<std::string, bool> input_register_map = {}
protected std::unordered_map<std::string, bool> input_map = {}
protected std::array<char[8], 7> special_keys = {}
protected std::vector<std::string> special_keys_unit_pressed = {}
protected std::vector<std::string> double_click_mouse_buttons_pressed = {}
protected std::vector<std::string> input_register_callback = {}
protected std::vector<std::string> input_released_list = {}
protected std::vector<std::string> immediate_register_list = {}
protected bool finger_hold_event = {}
protected bool finger_swipe_event = {}
protected bool is_special_keys_released = {}
protected ekg::vec4 last_finger_interact = {}
protected ekg::timing double_interact = {}
public ekg::timing timing_last_interact = {}
public ekg::vec4 interact = {}
public bool was_pressed = {}
public bool was_released = {}
public bool has_motion = {}
public bool was_wheel = {}
public bool was_typed = {}

Method Overview

  • public void bind(std::string_view input_tag, std::string_view key)
  • public void callback(std::string_view key, bool callback)
  • protected void complete_with_units(std::string & string_builder, std::string_view key_name)
  • protected bool contains_unit(std::string_view label)
  • public void fire(std::string_view key)
  • public void init()
  • protected bool is_special_key(int32_t sdl_key_code)
  • public void on_event(ekg::os::io_event_serial & io_event_serial)
  • public void on_update()
  • public bool pressed(std::string_view key)
  • public bool receive(std::string_view key)
  • public void unbind(std::string_view input_tag, std::string_view key)

Methods

void bind(std::string_view input_tag,
          std::string_view key)

Declared at: include/ekg/service/input.hpp:74

Parameters

std::string_view input_tag
std::string_view key

void callback(std::string_view key, bool callback)

Declared at: include/ekg/service/input.hpp:78

Parameters

std::string_view key
bool callback

void complete_with_units(
    std::string& string_builder,
    std::string_view key_name)

Declared at: include/ekg/service/input.hpp:66

Parameters

std::string& string_builder
std::string_view key_name

bool contains_unit(std::string_view label)

Declared at: include/ekg/service/input.hpp:68

Parameters

std::string_view label

void fire(std::string_view key)

Declared at: include/ekg/service/input.hpp:80

Parameters

std::string_view key

void init()

Declared at: include/ekg/service/input.hpp:72

bool is_special_key(int32_t sdl_key_code)

Declared at: include/ekg/service/input.hpp:70

Parameters

int32_t sdl_key_code

void on_event(
    ekg::os::io_event_serial& io_event_serial)

Declared at: include/ekg/service/input.hpp:86

Parameters

ekg::os::io_event_serial& io_event_serial

void on_update()

Declared at: include/ekg/service/input.hpp:88

bool pressed(std::string_view key)

Declared at: include/ekg/service/input.hpp:82

Parameters

std::string_view key

bool receive(std::string_view key)

Declared at: include/ekg/service/input.hpp:84

Parameters

std::string_view key

void unbind(std::string_view input_tag,
            std::string_view key)

Declared at: include/ekg/service/input.hpp:76

Parameters

std::string_view input_tag
std::string_view key