JKSV/include/keyboard.hpp
2025-02-21 13:31:40 -05:00

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