Function ctru_sys::swkbdInit

source ·
pub unsafe extern "C" fn swkbdInit(
    swkbd: *mut SwkbdState,
    type_: SwkbdType,
    numButtons: c_int,
    maxTextLength: c_int
)
Expand description

Initializes software keyboard status.

§Arguments

  • swkbd - Pointer to swkbd state.
  • type - Keyboard type.
  • numButtons - Number of dialog buttons to display (1, 2 or 3).
  • maxTextLength - Maximum number of UTF-16 code units that input text can have (or -1 to let libctru use a big default).