Unravel Engine C++ Reference
|
#include <os_input_manager.hpp>
Public Member Functions | |
os_input_manager () | |
void | init () |
auto | get_all_devices () const -> const std::vector< std::shared_ptr< input_device > > & |
auto | get_gamepad (uint32_t index) const -> const gamepad &override |
auto | get_max_gamepads () const -> uint32_t override |
auto | get_mouse () const -> const mouse &override |
auto | get_keyboard () const -> const keyboard &override |
void | before_events_update () override |
void | after_events_update () override |
void | on_os_event (const os::event &e) |
void | set_window_zone (const zone &window_zone) |
void | set_work_zone (const zone &work_zone) |
void | set_reference_size (const input_reference_size &reference_size) |
auto | remap_to_work_zone (coord global_pos) -> coord |
auto | is_inside_work_zone (coord global_pos) -> bool |
void | set_is_input_allowed (bool allowed) |
auto | is_input_allowed () const -> bool |
![]() | |
virtual | ~input_manager ()=default |
Definition at line 31 of file os_input_manager.hpp.
input::os_input_manager::os_input_manager | ( | ) |
Definition at line 20 of file os_input_manager.cpp.
|
overridevirtual |
Implements input::input_manager.
Definition at line 83 of file os_input_manager.cpp.
|
overridevirtual |
Implements input::input_manager.
Definition at line 72 of file os_input_manager.cpp.
auto input::os_input_manager::get_all_devices | ( | ) | const -> const std::vector<std::shared_ptr<input_device>>& |
Definition at line 43 of file os_input_manager.cpp.
|
overridevirtual |
Implements input::input_manager.
Definition at line 49 of file os_input_manager.cpp.
|
overridevirtual |
Implements input::input_manager.
Definition at line 66 of file os_input_manager.cpp.
|
overridevirtual |
Implements input::input_manager.
Definition at line 54 of file os_input_manager.cpp.
|
overridevirtual |
Implements input::input_manager.
Definition at line 60 of file os_input_manager.cpp.
void input::os_input_manager::init | ( | ) |
Definition at line 25 of file os_input_manager.cpp.
auto input::os_input_manager::is_input_allowed | ( | ) | const -> bool |
Definition at line 288 of file os_input_manager.cpp.
auto input::os_input_manager::is_inside_work_zone | ( | coord | global_pos | ) | -> bool |
Definition at line 249 of file os_input_manager.cpp.
void input::os_input_manager::on_os_event | ( | const os::event & | e | ) |
Definition at line 107 of file os_input_manager.cpp.
Definition at line 225 of file os_input_manager.cpp.
void input::os_input_manager::set_is_input_allowed | ( | bool | allowed | ) |
Definition at line 278 of file os_input_manager.cpp.
void input::os_input_manager::set_reference_size | ( | const input_reference_size & | reference_size | ) |
Definition at line 102 of file os_input_manager.cpp.
void input::os_input_manager::set_window_zone | ( | const zone & | window_zone | ) |
Definition at line 92 of file os_input_manager.cpp.
void input::os_input_manager::set_work_zone | ( | const zone & | work_zone | ) |
Definition at line 97 of file os_input_manager.cpp.