mirror of
https://github.com/J-D-K/JKSV.git
synced 2026-03-21 17:24:37 -05:00
20 lines
726 B
C++
20 lines
726 B
C++
#pragma once
|
|
#include <string_view>
|
|
#include <switch.h>
|
|
|
|
namespace keyboard
|
|
{
|
|
/// @brief Gets input using the Switch's keyboard.
|
|
/// @param keyboardType Type of keyboard shown.
|
|
/// @param defaultText The default text in the keyboard.
|
|
/// @param header The header of the keyboard.
|
|
/// @param stringOut Pointer to buffer to write to.
|
|
/// @param stringLength Size of the buffer to write too.
|
|
/// @return True if input was successful and valid. False if it wasn't.
|
|
bool get_input(SwkbdType keyboardType,
|
|
std::string_view defaultText,
|
|
std::string_view header,
|
|
char *stringOut,
|
|
size_t stringLength);
|
|
} // namespace keyboard
|