describes a keyboard. More...
#include <keyboard.h>
Data Fields | |
int | background |
int | grid_height |
int | grid_width |
int | keyboardOnSub |
int | mapBase |
KeyMap * | mappings [4] |
array of 4 keymap pointers, one for every keyboard state. | |
int | offset_x |
int | offset_y |
KeyChangeCallback | OnKeyPressed |
KeyChangeCallback | OnKeyReleased |
const u16 * | palette |
u32 | paletteLen |
u32 | scrollSpeed |
int | shifted |
KeyboardState | state |
int | tileBase |
u32 | tileLen |
int | tileOffset |
const u16 * | tiles |
int | visible |
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