describes a keyboard [詳細]
#include <keyboard.h>
Public 変数 | |
int | background |
int | keyboardOnSub |
int | offset_x |
int | offset_y |
int | grid_width |
int | grid_height |
KeyboardState | state |
int | shifted |
int | visible |
KeyMap * | mappings [4] |
const u16 * | tiles |
u32 | tileLen |
const u16 * | palette |
u32 | paletteLen |
int | mapBase |
int | tileBase |
int | tileOffset |
u32 | scrollSpeed |
KeyChangeCallback | OnKeyPressed |
KeyChangeCallback | OnKeyReleased |
describes a keyboard
Background number to use, after init() this contains the background ID >
the grid height, this size will be used to translate y coordinate of touch to y coordinate in keymap >
the grid width, this size will be used to translate x coordinate of touch to x coordinate in keymap >
boolean to determine if keyboard is on sub screen or main >
map base to be used by the keyboard>
x offset of the map, can be used to center a custom keyboard >
y offset of the map, can be used to center a custom keyboard >
will be called on key press>
will be called on key release >
const u16* Keyboard::palette |
pointer to the palette>
length in bytes of the palette data>
keyboard scroll speed on hide and show in pixels per frame (must be positive and 0 == instant on)
true if shifted>
the state of the keyboard>
tile base to be used by keyboard graphics>
length in bytes of graphics data>
tile offset (in bytes) to load graphics (map must be preadjusted) >
const u16* Keyboard::tiles |
pointer to graphics tiles, cannot exceed 44KB with default base>
true if visible>