Controller state (16-bit SNES controller format) More...
#include <input_backend.h>
Public Member Functions | |
bool | IsPressed (SnesButton button) const |
void | SetButton (SnesButton button, bool pressed) |
void | Clear () |
Public Attributes | |
uint16_t | buttons = 0 |
Controller state (16-bit SNES controller format)
Definition at line 33 of file input_backend.h.
|
inline |
Definition at line 36 of file input_backend.h.
References buttons.
|
inline |
Definition at line 40 of file input_backend.h.
References buttons.
Referenced by yaze::emu::input::SDL2InputBackend::Poll(), yaze::emu::input::InputManager::PressButton(), yaze::emu::input::InputManager::ReleaseButton(), and yaze::emu::input::SDL2InputBackend::UpdateEventState().
|
inline |
Definition at line 48 of file input_backend.h.
References buttons.
uint16_t yaze::emu::input::ControllerState::buttons = 0 |
Definition at line 34 of file input_backend.h.
Referenced by Clear(), IsPressed(), yaze::emu::input::InputManager::Poll(), and SetButton().