Keyboard Struct Reference

describes a keyboard. More...

#include <keyboard.h>

Data Fields

int background
int grid_height
int grid_width
int keyboardOnSub
int mapBase
KeyMapmappings [4]
 array of 4 keymap pointers, one for every keyboard state.
int offset_x
int offset_y
KeyChangeCallback OnKeyPressed
KeyChangeCallback OnKeyReleased
const u16palette
u32 paletteLen
u32 scrollSpeed
int shifted
KeyboardState state
int tileBase
u32 tileLen
int tileOffset
const u16tiles
int visible

Detailed Description

describes a keyboard.

Examples:

input/keyboard/keyboard_stdin/source/keymain.c.


Field Documentation

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

Examples:
input/keyboard/keyboard_stdin/source/keymain.c.

will be called on key release

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)

pointer to graphics tiles, cannot exceed 44KB with default base

true if visible


The documentation for this struct was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines
Generated on Sat Oct 2 12:55:14 2010 for libnds by  doxygen 1.6.3