coastline 0.0.4
Loading...
Searching...
No Matches
coastline::ControllerState Struct Reference

The state of one controller port, as libultra reports a pad. More...

#include <controller.h>

Collaboration diagram for coastline::ControllerState:

Public Attributes

std::uint16_t buttons = 0
std::int8_t stickX = 0
std::int8_t stickY = 0
bool connected = false

Detailed Description

The state of one controller port, as libultra reports a pad.

Member Data Documentation

◆ buttons

std::uint16_t coastline::ControllerState::buttons = 0

The ControllerButton bits held.

◆ stickX

std::int8_t coastline::ControllerState::stickX = 0

The stick, right positive, about -80 to 80.

◆ stickY

std::int8_t coastline::ControllerState::stickY = 0

The stick, up positive, about -80 to 80.

◆ connected

bool coastline::ControllerState::connected = false

Whether a device is bound to the port.


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