Defines | |
#define | OSL_OSK_CANCEL PSP_UTILITY_OSK_RESULT_CANCELLED |
#define | OSL_OSK_CHANGED PSP_UTILITY_OSK_RESULT_CHANGED |
#define | OSL_OSK_UNCHANGED PSP_UTILITY_OSK_RESULT_UNCHANGED |
Functions | |
void | oslInitOsk (char *descStr, char *initialStr, int textLimit, int linesNumber, int language) |
void | oslDrawOsk () |
int | oslOskIsActive () |
int | oslGetOskStatus () |
int | oslOskGetResult () |
void | oslOskGetText (char *text) |
void | oslEndOsk () |
#define OSL_OSK_CANCEL PSP_UTILITY_OSK_RESULT_CANCELLED |
OSK cancel -- STAS: for backward compatibility
#define OSL_OSK_CHANGED PSP_UTILITY_OSK_RESULT_CHANGED |
OSK changed
#define OSL_OSK_UNCHANGED PSP_UTILITY_OSK_RESULT_UNCHANGED |
OSK unchanged
void oslInitOsk | ( | char * | descStr, | |
char * | initialStr, | |||
int | textLimit, | |||
int | linesNumber, | |||
int | language | |||
) |
Initializes the OSK
*descStr | Text shown as a description (bottom right corner) | |
initialStr | Initial text in the OSK | |
textLimit | Maximum number of chars | |
linesNumber | Number of lines | |
language | Language JAPANESE 0 ENGLISH 1 FRENCH 2 SPANISH 3 GERMAN 4 ITALIAN 5 DUTCH 6 PORTUGUESE 7 RUSSIAN 8 KOREAN 9 CHINESE_TRADITIONAL 10 CHINESE_SIMPLIFIED 11 If you pass to the function -1 then the language set in the firmware is used |
void oslDrawOsk | ( | ) |
Draws the OSK After drawing it you should check if the user closed it. Remember to call oslEndOsk.
if (oslOskIsActive()){ oslDrawOsk(); if (oslGetOskStatus() == PSP_UTILITY_DIALOG_NONE){ //The user closed the OSK oslEndOsk(); } }
int oslOskIsActive | ( | ) |
Checks if the OSK is active.
int oslGetOskStatus | ( | ) |
Returns the current OSK status
int oslOskGetResult | ( | ) |
Returns the OSK result (OSL_OSK_CHANGED, OSL_OSK_UNCHANGED or OSL_OSK_CANCEL)
void oslOskGetText | ( | char * | text | ) |
Get the text inserted in the OSK
void oslEndOsk | ( | ) |
Ends the OSK