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

The presses of a controller that act on a menu, each true on the frame it starts. More...

#include <menuscreen.h>

Collaboration diagram for coastline::MenuButtons:

Public Attributes

bool left = false
bool right = false
bool up = false
bool down = false
bool choose = false
bool start = false
bool back = false
bool held = false
bool cDown = false
std::uint16_t heldButtons = 0
 The ControllerButton bits held, without the directions the stick pushes, which the car select screen paints the car with.
std::int8_t stickY = 0

Detailed Description

The presses of a controller that act on a menu, each true on the frame it starts.

Member Data Documentation

◆ left

bool coastline::MenuButtons::left = false

Left on the pad or the stick, to move to the item before.

◆ right

bool coastline::MenuButtons::right = false

Right on the pad or the stick, to move to the item after.

◆ up

bool coastline::MenuButtons::up = false

Up on the pad or the stick, to raise an adjustable item.

◆ down

bool coastline::MenuButtons::down = false

Down on the pad or the stick, to lower an adjustable item.

◆ choose

bool coastline::MenuButtons::choose = false

A, Start, or Z, to choose the item.

◆ start

bool coastline::MenuButtons::start = false

Start, read by itself on the car select screen too.

◆ back

bool coastline::MenuButtons::back = false

B, to exit the screen.

◆ held

bool coastline::MenuButtons::held = false

Whether any button is down, restarting the wait of the timeout.

◆ cDown

bool coastline::MenuButtons::cDown = false

C down, to switch the look of a car on the car select screen.

◆ heldButtons

std::uint16_t coastline::MenuButtons::heldButtons = 0

The ControllerButton bits held, without the directions the stick pushes, which the car select screen paints the car with.

◆ stickY

std::int8_t coastline::MenuButtons::stickY = 0

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


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