libnds
Data Fields
Keyboard Struct Reference

Describes a keyboard. More...

#include <keyboard.h>

Data Fields

int background
 Background use, after init() this contains the background ID.
 
int grid_height
 Grid height, used to translate y coordinate to keymap.
 
int grid_width
 Grid width, used to translate x coordinate to keymap.
 
int keyboardOnSub
 boolean to determine if keyboard is on sub screen or main
 
int mapBase
 Map base to be used by the keyboard.
 
KeyMapmappings [4]
 Array of 4 keymap pointers, one for every keyboard state.
 
int offset_x
 X offset of the map, can be used to center a custom keyboard.
 
int offset_y
 Y offset of the map, can be used to center a custom keyboard.
 
KeyChangeCallback OnKeyPressed
 Will be called on key press.
 
KeyChangeCallback OnKeyReleased
 Will be called on key release.
 
const u16palette
 Pointer to the palette.
 
u32 paletteLen
 Length in bytes of the palette data.
 
u32 scrollSpeed
 Keyboard scroll speed on hide and show in pixels per frame (must be positive; 0 == instant on).
 
int shifted
 If shifted, true.
 
KeyboardState state
 The state of the keyboard.
 
int tileBase
 Tile base to be used by keyboard graphics.
 
u32 tileLen
 Length in bytes of graphics data.
 
int tileOffset
 Tile offset (in bytes) to load graphics (the map must be preadjusted for this offset)
 
const u16tiles
 Pointer to graphics tiles, cannot exceed 44KB with default base.
 
int visible
 If visible, true.
 

Detailed Description

Describes a keyboard.


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