66 memset(
this, 0,
sizeof(*
this));
83 WUT_UNKNOWN_BYTES(0x9C - 0x18);
88 WUT_CHECK_OFFSET(
ConfigArg, 0x00, languageType);
89 WUT_CHECK_OFFSET(
ConfigArg, 0x04, unk_0x04);
90 WUT_CHECK_OFFSET(
ConfigArg, 0x08, unk_0x08);
91 WUT_CHECK_OFFSET(
ConfigArg, 0x0C, unk_0x0C);
92 WUT_CHECK_OFFSET(
ConfigArg, 0x10, unk_0x10);
93 WUT_CHECK_OFFSET(
ConfigArg, 0x14, unk_0x14);
94 WUT_CHECK_OFFSET(
ConfigArg, 0x9C, unk_0x9C);
95 WUT_CHECK_OFFSET(
ConfigArg, 0xA4, unk_0xA4);
138 WUT_PADDING_BYTES(1);
173 WUT_CHECK_OFFSET(
CreateArg, 0x00, workMemory);
174 WUT_CHECK_OFFSET(
CreateArg, 0x04, regionType);
175 WUT_CHECK_OFFSET(
CreateArg, 0x08, unk_0x08);
176 WUT_CHECK_OFFSET(
CreateArg, 0x0C, fsClient);
187 WUT_CHECK_OFFSET(ControllerInfo, 0x00, vpad);
188 WUT_CHECK_OFFSET(ControllerInfo, 0x04, kpad);
189 WUT_CHECK_SIZE(ControllerInfo, 0x14);
195 memset(
this, 0,
sizeof(*
this));
198 WUT_UNKNOWN_BYTES(0x1C);
200 WUT_CHECK_SIZE(DrawStringInfo, 0x1C);
211 struct IEventReceiver;
212 struct IControllerEventObj;
549 #endif // ifdef __cplusplus
bool IsNeedCalcSubThreadFont()
Determines whether the font data needs calculating.
void DrawTV()
Draw the keyboard to the TV.
bool IsNeedCalcSubThreadPredict()
Determines whether the prediction data needs calculating.
bool InitLearnDic(void *dictionary)
void SetCursorPos(int pos)
Set the character at which the cursor is positioned.
ConfigArg configArg
Configuration for the keyboard itself.
Input and controller information for swkbd.
LanguageType languageType
The language to use for input.
const char16_t * GetInputFormString()
Get the string the user typed into the input form.
RegionType regionType
The swkbd region to use.
void SetReceiver(const ReceiverArg &receiver)
bool Create(const CreateArg &args)
Initialise the swkbd library and create the keyboard and input form.
int32_t maxTextLength
The maximum number of characters that can be entered, -1 for unlimited.
void CalcSubThreadFont()
Calculate font data.
bool AppearInputForm(const AppearArg &args)
Show an input form (keyboard with text area) with the given configuration.
InputFormArg inputFormArg
Arguments for the input form (text area)
bool DisappearKeyboard()
Hide a previously shown keyboard.
bool DisappearInputForm()
Hide a previously shown input form.
bool IsDecideCancelButton(bool *outIsSelected)
Gets the current status of the Cancel button on the keyboard.
uint32_t GetWorkMemorySize(uint32_t unk)
Get the required size for swkbd's work memory buffer.
Arguments for the swkbd input form and keyboard.
void Calc(const ControllerInfo &controllerInfo)
Respond to user inputs and calculate the state of input buffers and graphics.
void CalcSubThreadPredict()
Calculate word prediction data.
void DrawDRC()
Draw the keyboard to the DRC.
KPADStatus * kpad[4]
Wiimote and extension controller inputs, see KPADRead.
void SetEnableOkButton(bool enable)
Enables and disables the OK button on the keyboard.
bool IsSelectCursorActive()
Determines whether the selection cursor is active.
bool IsCoveredWithSubWindow()
void * workMemory
A pointer to a work memory buffer; see GetWorkMemorySize.
The arguments used to initialise swkbd and pass in its required resources.
Configuration options for the virtual keyboard.
FSClient * fsClient
An FSClient for swkbd to use while loading resources.
void GetDrawStringInfo(DrawStringInfo *drawStringInfo)
bool IsKeyboardTarget(IEventReceiver *eventReceiver)
void SetControllerRemo(ControllerType type)
State GetStateInputForm()
bool AppearKeyboard(const KeyboardArg &args)
Show a keyboard with the given configuration.
VPADStatus * vpad
DRC input information, see VPADRead.
void InactivateSelectCursor()
void SetUserControllerEventObj(IControllerEventObj *controllerEventObj)
void Destroy()
Clean up and shut down the swkbd library.
Arguments for the swkbd keyboard.
void GetKeyboardCondition(KeyboardCondition *keyboardCondition)
void SetUserSoundObj(ISoundObj *soundObj)
void MuteAllSound(bool muted)
Mutes or unmutes the sounds generated by the keyboard.
KeyboardArg keyboardArg
Arguments for the virtual keyboard.
void SetInputFormString(const char16_t *str)
Sets the text in the input form.
bool IsDecideOkButton(bool *outIsSelected)
Gets the current status of the OK button on the keyboard.