Function ctru_sys::swkbdInputText

source ·
pub unsafe extern "C" fn swkbdInputText(
    swkbd: *mut SwkbdState,
    buf: *mut c_char,
    bufsize: usize
) -> SwkbdButton
Expand description

Launches a software keyboard in order to input text.

§Arguments

  • swkbd - Pointer to swkbd state.
  • buf - Pointer to output buffer which will hold the inputted text.
  • bufsize - Maximum number of UTF-8 code units that the buffer can hold (including null terminator).

§Returns

The identifier of the dialog button that was pressed, or SWKBD_BUTTON_NONE if a different condition was triggered - in that case use swkbdGetResult to check the condition.