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

The input of the player of the paint shop for a frame. More...

#include <paintshop.h>

Collaboration diagram for coastline::PaintShopInput:

Public Attributes

u32 buttons = 0
float stickX = 0.0f
float stickY = 0.0f
std::optional< std::array< int, 2 > > pointer
 Where the mouse moved to this frame on the 640 by 480 screen, or none when it is still.
bool enter = false
bool escape = false
 Whether Escape is down, B in a dialog and on the keyboard of the text tool.
bool undo = false
 Whether Ctrl+Z was pressed this frame to undo an edit outside a dialog.
bool redo = false
 Whether Ctrl+Shift+Z was pressed this frame to redo an edit outside a dialog.
bool constrain = false
std::string text
 The characters typed on a keyboard this frame in UTF-8, with Backspace as code point 8 and Enter as code point 13, in the order typed.

Detailed Description

The input of the player of the paint shop for a frame.

Member Data Documentation

◆ buttons

u32 coastline::PaintShopInput::buttons = 0

The INPUT_ bits down, with the buttons of the mouse as A and B.

◆ stickX

float coastline::PaintShopInput::stickX = 0.0f

The stick across, from -1 for the left to 1 for the right.

◆ stickY

float coastline::PaintShopInput::stickY = 0.0f

The stick up and down, from -1 for down to 1 for up.

◆ pointer

std::optional<std::array<int, 2> > coastline::PaintShopInput::pointer

Where the mouse moved to this frame on the 640 by 480 screen, or none when it is still.

◆ enter

bool coastline::PaintShopInput::enter = false

Whether Return or keypad Enter is down, A in a dialog.

◆ escape

bool coastline::PaintShopInput::escape = false

Whether Escape is down, B in a dialog and on the keyboard of the text tool.

◆ undo

bool coastline::PaintShopInput::undo = false

Whether Ctrl+Z was pressed this frame to undo an edit outside a dialog.

◆ redo

bool coastline::PaintShopInput::redo = false

Whether Ctrl+Shift+Z was pressed this frame to redo an edit outside a dialog.

◆ constrain

bool coastline::PaintShopInput::constrain = false

Whether Shift or controller Z constrains a shape.

◆ text

std::string coastline::PaintShopInput::text

The characters typed on a keyboard this frame in UTF-8, with Backspace as code point 8 and Enter as code point 13, in the order typed.


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