yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::emu::input::ControllerState Struct Reference

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
 

Detailed Description

Controller state (16-bit SNES controller format)

Definition at line 33 of file input_backend.h.

Member Function Documentation

◆ IsPressed()

bool yaze::emu::input::ControllerState::IsPressed ( SnesButton  button) const
inline

Definition at line 36 of file input_backend.h.

References buttons.

◆ SetButton()

void yaze::emu::input::ControllerState::SetButton ( SnesButton  button,
bool  pressed 
)
inline

◆ Clear()

void yaze::emu::input::ControllerState::Clear ( )
inline

Definition at line 48 of file input_backend.h.

References buttons.

Member Data Documentation

◆ 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().


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