|
#define | SWKBD_MAX_WORD_LEN 40 |
| Maximum dictionary word length, in UTF-16 code units.
|
|
#define | SWKBD_MAX_BUTTON_TEXT_LEN 16 |
| Maximum button text length, in UTF-16 code units.
|
|
#define | SWKBD_MAX_HINT_TEXT_LEN 64 |
| Maximum hint text length, in UTF-16 code units.
|
|
#define | SWKBD_MAX_CALLBACK_MSG_LEN 256 |
| Maximum filter callback error message length, in UTF-16 code units.
|
|
|
enum | SwkbdType {
SWKBD_TYPE_NORMAL = 0
,
SWKBD_TYPE_QWERTY
,
SWKBD_TYPE_NUMPAD
,
SWKBD_TYPE_WESTERN
} |
| Keyboard types. More...
|
|
enum | SwkbdValidInput {
SWKBD_ANYTHING = 0
,
SWKBD_NOTEMPTY
,
SWKBD_NOTEMPTY_NOTBLANK
,
SWKBD_NOTBLANK_NOTEMPTY = SWKBD_NOTEMPTY_NOTBLANK
,
SWKBD_NOTBLANK
,
SWKBD_FIXEDLEN
} |
| Accepted input types. More...
|
|
enum | SwkbdButton {
SWKBD_BUTTON_LEFT = 0
,
SWKBD_BUTTON_MIDDLE
,
SWKBD_BUTTON_RIGHT
,
SWKBD_BUTTON_CONFIRM = SWKBD_BUTTON_RIGHT
,
SWKBD_BUTTON_NONE
} |
| Keyboard dialog buttons. More...
|
|
enum | SwkbdPasswordMode {
SWKBD_PASSWORD_NONE = 0
,
SWKBD_PASSWORD_HIDE
,
SWKBD_PASSWORD_HIDE_DELAY
} |
| Keyboard password modes. More...
|
|
enum | {
SWKBD_FILTER_DIGITS = BIT(0)
,
SWKBD_FILTER_AT = BIT(1)
,
SWKBD_FILTER_PERCENT = BIT(2)
,
SWKBD_FILTER_BACKSLASH = BIT(3)
,
SWKBD_FILTER_PROFANITY = BIT(4)
,
SWKBD_FILTER_CALLBACK = BIT(5)
} |
| Keyboard input filtering flags. More...
|
|
enum | {
SWKBD_PARENTAL = BIT(0)
,
SWKBD_DARKEN_TOP_SCREEN = BIT(1)
,
SWKBD_PREDICTIVE_INPUT = BIT(2)
,
SWKBD_MULTILINE = BIT(3)
,
SWKBD_FIXED_WIDTH = BIT(4)
,
SWKBD_ALLOW_HOME = BIT(5)
,
SWKBD_ALLOW_RESET = BIT(6)
,
SWKBD_ALLOW_POWER = BIT(7)
,
SWKBD_DEFAULT_QWERTY = BIT(9)
} |
| Keyboard features. More...
|
|
enum | SwkbdCallbackResult {
SWKBD_CALLBACK_OK = 0
,
SWKBD_CALLBACK_CLOSE
,
SWKBD_CALLBACK_CONTINUE
} |
| Keyboard filter callback return values. More...
|
|
enum | SwkbdResult {
SWKBD_NONE = -1
,
SWKBD_INVALID_INPUT = -2
,
SWKBD_OUTOFMEM = -3
,
SWKBD_D0_CLICK = 0
,
SWKBD_D1_CLICK0
,
SWKBD_D1_CLICK1
,
SWKBD_D2_CLICK0
,
SWKBD_D2_CLICK1
,
SWKBD_D2_CLICK2
,
SWKBD_HOMEPRESSED = 10
,
SWKBD_RESETPRESSED
,
SWKBD_POWERPRESSED
,
SWKBD_PARENTAL_OK = 20
,
SWKBD_PARENTAL_FAIL
,
SWKBD_BANNED_INPUT = 30
} |
| Keyboard return values. More...
|
|
|
void | swkbdInit (SwkbdState *swkbd, SwkbdType type, int numButtons, int maxTextLength) |
| Initializes software keyboard status.
|
|
static void | swkbdSetPasswordMode (SwkbdState *swkbd, SwkbdPasswordMode mode) |
| Configures password mode in a software keyboard.
|
|
static void | swkbdSetValidation (SwkbdState *swkbd, SwkbdValidInput validInput, u32 filterFlags, int maxDigits) |
| Configures input validation in a software keyboard.
|
|
static void | swkbdSetNumpadKeys (SwkbdState *swkbd, int left, int right) |
| Configures what characters will the two bottom keys in a numpad produce.
|
|
void | swkbdSetFeatures (SwkbdState *swkbd, u32 features) |
| Specifies which special features are enabled in a software keyboard.
|
|
void | swkbdSetHintText (SwkbdState *swkbd, const char *text) |
| Sets the hint text of a software keyboard (that is, the help text that is displayed when the textbox is empty).
|
|
void | swkbdSetButton (SwkbdState *swkbd, SwkbdButton button, const char *text, bool submit) |
| Configures a dialog button in a software keyboard.
|
|
void | swkbdSetInitialText (SwkbdState *swkbd, const char *text) |
| Sets the initial text that a software keyboard will display on launch.
|
|
void | swkbdSetDictWord (SwkbdDictWord *word, const char *reading, const char *text) |
| Configures a word in a predictive dictionary for use with a software keyboard.
|
|
void | swkbdSetDictionary (SwkbdState *swkbd, const SwkbdDictWord *dict, int wordCount) |
| Sets the custom word dictionary to be used with the predictive input system of a software keyboard.
|
|
void | swkbdSetStatusData (SwkbdState *swkbd, SwkbdStatusData *data, bool in, bool out) |
| Configures software keyboard internal status management.
|
|
void | swkbdSetLearningData (SwkbdState *swkbd, SwkbdLearningData *data, bool in, bool out) |
| Configures software keyboard predictive input learning data management.
|
|
void | swkbdSetFilterCallback (SwkbdState *swkbd, SwkbdCallbackFn callback, void *user) |
| Configures a custom function to be used to check the validity of input when it is submitted in a software keyboard.
|
|
SwkbdButton | swkbdInputText (SwkbdState *swkbd, char *buf, size_t bufsize) |
| Launches a software keyboard in order to input text.
|
|
static SwkbdResult | swkbdGetResult (SwkbdState *swkbd) |
| Retrieves the result condition of a software keyboard after it has been used.
|
|
Software keyboard applet.