|
coastline 0.0.4
|
The input of the player of the paint shop for a frame. More...
#include <paintshop.h>

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. | |
The input of the player of the paint shop for a frame.
| u32 coastline::PaintShopInput::buttons = 0 |
The INPUT_ bits down, with the buttons of the mouse as A and B.
| float coastline::PaintShopInput::stickX = 0.0f |
The stick across, from -1 for the left to 1 for the right.
| float coastline::PaintShopInput::stickY = 0.0f |
The stick up and down, from -1 for down to 1 for up.
| 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.
| bool coastline::PaintShopInput::enter = false |
Whether Return or keypad Enter is down, A in a dialog.
| bool coastline::PaintShopInput::escape = false |
Whether Escape is down, B in a dialog and on the keyboard of the text tool.
| bool coastline::PaintShopInput::undo = false |
Whether Ctrl+Z was pressed this frame to undo an edit outside a dialog.
| bool coastline::PaintShopInput::redo = false |
Whether Ctrl+Shift+Z was pressed this frame to redo an edit outside a dialog.
| bool coastline::PaintShopInput::constrain = false |
Whether Shift or controller Z constrains a shape.
| 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.