Unravel Engine C++ Reference
|
#include <os_gamepad.hpp>
Public Member Functions | |
os_gamepad (int index) | |
~os_gamepad () override | |
auto | get_axis_value (uint32_t axis) const -> float override |
auto | get_button_state (uint32_t button) const -> button_state override |
auto | get_name () const -> const std::string &override |
auto | is_connected () const -> bool override |
auto | is_down (uint32_t button) const -> bool override |
auto | is_pressed (uint32_t button) const -> bool override |
auto | is_released (uint32_t button) const -> bool override |
void | update () |
void | refresh_device () |
void | open_device () |
void | close_device () |
![]() | |
gamepad () | |
![]() | |
input_device (const device_type type) | |
virtual | ~input_device () |
auto | get_device_type () const -> device_type |
void | set_is_input_allowed (bool allowed) |
auto | is_input_allowed () const -> bool |
Definition at line 12 of file os_gamepad.hpp.
input::os_gamepad::os_gamepad | ( | int | index | ) |
Definition at line 9 of file os_gamepad.cpp.
|
override |
Definition at line 14 of file os_gamepad.cpp.
void input::os_gamepad::close_device | ( | ) |
Definition at line 31 of file os_gamepad.cpp.
|
overridevirtual |
Implements input::gamepad.
Definition at line 99 of file os_gamepad.cpp.
|
overridevirtual |
Implements input::gamepad.
Definition at line 115 of file os_gamepad.cpp.
|
overridevirtual |
Implements input::input_device.
Definition at line 121 of file os_gamepad.cpp.
|
overridevirtual |
Implements input::gamepad.
Definition at line 127 of file os_gamepad.cpp.
|
overridevirtual |
Implements input::gamepad.
Definition at line 133 of file os_gamepad.cpp.
|
overridevirtual |
Implements input::gamepad.
Definition at line 143 of file os_gamepad.cpp.
|
overridevirtual |
Implements input::gamepad.
Definition at line 152 of file os_gamepad.cpp.
void input::os_gamepad::open_device | ( | ) |
Definition at line 19 of file os_gamepad.cpp.
void input::os_gamepad::refresh_device | ( | ) |
Definition at line 42 of file os_gamepad.cpp.
void input::os_gamepad::update | ( | ) |
Definition at line 48 of file os_gamepad.cpp.