OldSchool Library 1.5.1
Loading...
Searching...
No Matches
osk.h File Reference

On-Screen Keyboard functions in OSLib. More...

Data Structures

struct  OSL_KEYBOARD
 Structure representing the on-screen keyboard (OSK) parameters. More...
 

Macros

#define OSL_OSK_RESULT_UNCHANGED   PSP_UTILITY_OSK_RESULT_UNCHANGED
 Indicates that the OSK result is unchanged.
 
#define OSL_OSK_RESULT_CANCELLED   PSP_UTILITY_OSK_RESULT_CANCELLED
 Indicates that the OSK operation was cancelled.
 
#define OSL_OSK_RESULT_CHANGED   PSP_UTILITY_OSK_RESULT_CHANGED
 Indicates that the OSK result has changed.
 
#define OSL_OSK_CANCEL   PSP_UTILITY_OSK_RESULT_CANCELLED
 OSK cancel result.
 
#define OSL_OSK_CHANGED   PSP_UTILITY_OSK_RESULT_CHANGED
 OSK changed result.
 
#define OSL_OSK_UNCHANGED   PSP_UTILITY_OSK_RESULT_UNCHANGED
 OSK unchanged result.
 

Functions

OSL_KEYBOARDoslInitOskEx (int nData, int language)
 Initializes the on-screen keyboard with specified parameters.
 
int oslInitOskDataEx (OSL_KEYBOARD *kbd, int idx, unsigned short *desc, unsigned short *intext, int textLimit, int linesNumber)
 Initializes specific OSK data.
 
int oslActivateOskEx (OSL_KEYBOARD *kbd, int waitcycle)
 Activates the on-screen keyboard.
 
int oslOskIsActiveEx (OSL_KEYBOARD *kbd)
 Checks if the on-screen keyboard is active.
 
void oslDeActivateOskEx (OSL_KEYBOARD *kbd)
 Deactivates the on-screen keyboard.
 
int oslOskGetResultEx (OSL_KEYBOARD *kbd, int idx)
 Gets the result of the on-screen keyboard interaction.
 
unsigned short * oslOskOutTextEx (OSL_KEYBOARD *kbd, int idx)
 Retrieves the text output from the on-screen keyboard.
 
void oslEndOskEx (OSL_KEYBOARD *kbd)
 Ends the on-screen keyboard session and releases resources.
 
void oslInitOsk (char *descStr, char *initialStr, int textLimit, int linesNumber, int language)
 Initializes the OSK with basic parameters.
 
void oslDrawOsk ()
 Draws the OSK on the screen.
 
int oslOskIsActive ()
 Checks if the OSK is currently active.
 
int oslGetOskStatus ()
 Returns the current OSK status.
 
int oslOskGetResult ()
 Returns the result of the OSK interaction.
 
void oslOskGetText (char *text)
 Retrieves the text inserted by the user in the OSK.
 
void oslOskGetTextUCS2 (unsigned short *text)
 Retrieves the text inserted by the user in the OSK (UCS2).
 
void oslEndOsk ()
 Ends the OSK session.
 

Variables

OSL_KEYBOARDosl_osk
 Global instance of the on-screen keyboard.
 

Detailed Description

On-Screen Keyboard functions in OSLib.

This file provides access to Sony's On-Screen Keyboard (OSK), used to let the user enter text.