psl1ght
A free SDK for Sony's PS3 console
osk.h
Go to the documentation of this file.
1 
5 #ifndef __LV2_OSK_H__
6 #define __LV2_OSK_H__
7 
8 #include <ppu-types.h>
9 
10 #define OSK_10KEY_PANEL 1
11 #define OSK_FULLKEY_PANEL 2
12 
13 #define OSK_DEVICE_MASK_PAD 0xff
14 
15 #define OSK_LANG_KOREAN 0x00001000
16 #define OSK_LANG_DANISH 0x00020000
17 #define OSK_LANG_SWEDISH 0x00040000
18 #define OSK_LANG_NORWEGIAN 0x00080000
19 #define OSK_LANG_FINNISH 0x00100000
20 #define OSK_LANG_TRADITIONAL_CHINESE
21 #define OSK_LANG_SIMPLIFIED_CHINESE
22 
23 
24 #define OSK_PANEL_TYPE_DEFAULT 0x00000000
25 #define OSK_PANEL_TYPE_DEFAULT_NO_JAPANESE 0x00000200
26 #define OSK_PANEL_TYPE_ALPHABET_FULL_WIDTH 0x00800000
27 #define OSK_PANEL_TYPE_ALPHABET 0x01000000
28 #define OSK_PANEL_TYPE_NUMERAL_FULL_WIDTH 0x04000000
29 #define OSK_PANEL_TYPE_NUMERAL 0x08000000
30 #define OSK_PANEL_TYPE_JAPANESE 0x00000100
31 #define OSK_PANEL_TYPE_JAPANESE_HIRAGANA 0x00200000
32 #define OSK_PANEL_TYPE_JAPANESE_KATAKANA 0x00400000
33 #define OSK_PANEL_TYPE_ENGLISH 0x00000002
34 #define OSK_PANEL_TYPE_FRENCH 0x00000008
35 #define OSK_PANEL_TYPE_SPANISH 0x00000004
36 #define OSK_PANEL_TYPE_DUTCH 0x00000020
37 #define OSK_PANEL_TYPE_GERMAN 0x00000001
38 #define OSK_PANEL_TYPE_RUSSIAN 0x00000080
39 #define OSK_PANEL_TYPE_ITALIAN 0x00000010
40 #define OSK_PANEL_TYPE_PORTUGUESE 0x00000040
41 #define OSK_PANEL_TYPE_KOREAN 0x00001000
42 #define OSK_PANEL_TYPE_DANISH 0x00020000
43 #define OSK_PANEL_TYPE_SWEDISH 0x00040000
44 #define OSK_PANEL_TYPE_NORWEGIAN 0x00080000
45 #define OSK_PANEL_TYPE_FINNISH 0x00100000
46 #define OSK_PANEL_TYPE_TRADITIONAL_CHINESE 0x00004000
47 #define OSK_PANEL_TYPE_SIMPLIFIED_CHINESE 0x00008000
48 #define OSK_PANEL_TYPE_LATIN 0x02000000
49 #define OSK_PANEL_TYPE_URL 0x10000000
50 #define OSK_PANEL_TYPE_PASSWORD 0x20000000
51 
52 
53 #define OSK_PROHIBIT_SPACE 0x00000001
54 #define OSK_PROHIBIT_RETURN 0x00000002
55 #define OSK_PROHIBIT_INPUT_ANALOG 0x00000008
56 
57 #define OSK_LAYOUTMODE_HORIZONTAL_ALIGN_RIGHT 0x00000200
58 #define OSK_LAYOUTMODE_HORIZONTAL_ALIGN_CENTER 0x00000400
59 #define OSK_LAYOUTMODE_HORIZONTAL_ALIGN_LEFT 0x00000800
60 #define OSK_LAYOUTMODE_VERTICAL_ALIGN_BOTTOM 0x00001000
61 #define OSK_LAYOUTMODE_VERTICAL_ALIGN_CENTER 0x00002000
62 #define OSK_LAYOUTMODE_VERTICAL_ALIGN_TOP 0x00004000
63 
64 #ifdef __cplusplus
65 extern "C" {
66 #endif
67 
69 typedef enum
70 {
74 } oskKeyLayout;
75 
77 typedef enum
78 {
84 
86 typedef enum
87 {
91 
93 typedef enum
94 {
100 
102 typedef enum
103 {
113 } oskType;
114 
116 typedef struct _osk_pnt
117 {
118  f32 x;
119  f32 y;
120 } oskPoint;
121 
123 typedef struct _osk_param
124 {
157 
200 } oskParam;
201 
203 typedef struct _osk_layout_info
204 {
218 } oskLayoutInfo;
219 
221 typedef struct _osk_input_field_info
222 {
223  u16 *message ATTRIBUTE_PRXPTR;
224  u16 *startText ATTRIBUTE_PRXPTR;
225  s32 maxLength;
227 
229 typedef struct _osk_cb_return_param
230 {
232  s32 len;
233  u16 *str ATTRIBUTE_PRXPTR;
235 
238 {
240  s32 mask;
243  oskLayoutInfo *inputFieldLayoutInfo ATTRIBUTE_PRXPTR;
244  oskLayoutInfo *inputPanelLayoutInfo ATTRIBUTE_PRXPTR;
245  u32 reserved;
247 
253 
260 s32 oskGetSize(u16 *width, u16 *height, oskType type);
261 
267 
271 s32 oskDisableDimmer();
272 
279 s32 oskSetKeyLayoutOption(u32 flags);
280 
284 s32 oskAbort();
285 
290 s32 oskSetDeviceMask(u32 mask);
291 
297 
303 
336 s32 oskAddSupportLanguage(u32 lang);
337 
344 s32 oskLoadAsync(sys_mem_container_t container, const oskParam *param, const oskInputFieldInfo *inputInfo);
345 
351 
363 s32 oskSetLayoutMode (s32 mode);
364 
365 #ifdef __cplusplus
366  }
367 #endif
368 
369 #endif
s32 oskGetInputText(oskCallbackReturnParam *info)
Get on-screen keyboard input text.
s32 layoutMode
Layout mode.
Definition: osk.h:215
full keyboard panel.
Definition: osk.h:73
oskLayoutInfo *inputFieldLayoutInfo ATTRIBUTE_PRXPTR
Input field layout info.
Definition: osk.h:243
f32 inputFieldTransparency
Input field transparency.
Definition: osk.h:242
oskInputFieldResult
Result of on-screen keyboard input.
Definition: osk.h:77
Point structure for on-screen keyboard management.
Definition: osk.h:116
s32 oskSetInitialKeyLayout(oskKeyLayout layout)
Set the on-screen keyboard initial key layout.
u32 allowedPanels
Allowed panel types.
Definition: osk.h:156
s32 oskAbort()
Abort the currently opened on-screen keyboard panel.
Hide panel by default.
Definition: osk.h:97
oskPoint position
Panel position.
Definition: osk.h:217
Input success.
Definition: osk.h:79
s32 oskAddSupportLanguage(u32 lang)
Add a supported language to on-screen keyboard.
s32 oskSetSeparateWindowOption(oskSeparateWindowOption *option)
Set on-screen keyboard separate window option.
On-screen keyboard panel layout info data structure.
Definition: osk.h:203
Separated multiline panel.
Definition: osk.h:109
struct _osk_pnt oskPoint
Point structure for on-screen keyboard management.
No continuous mode.
Definition: osk.h:95
On-screen keyboard manager parameters.
Definition: osk.h:123
Separated panel with candidate selector (for keyboard input)
Definition: osk.h:112
u32 firstViewPanel
First panel type to be used.
Definition: osk.h:189
struct _osk_layout_info oskLayoutInfo
On-screen keyboard panel layout info data structure.
s32 mask
Devices mask. Either 0 or OSK_DEVICE_MASK_PAD.
Definition: osk.h:240
s32 oskSetKeyLayoutOption(u32 flags)
Set the on-screen keyboard key layout.
oskLayoutInfo *inputPanelLayoutInfo ATTRIBUTE_PRXPTR
Input panel layout info.
Definition: osk.h:244
f32 x
Horizontal coordinate.
Definition: osk.h:118
s32 oskGetSize(u16 *width, u16 *height, oskType type)
Get size of on-screen keyboard panel.
Single line panel with full keyboard.
Definition: osk.h:106
u16 *str ATTRIBUTE_PRXPTR
Array of characters entered.
Definition: osk.h:233
Separated single line panel with 10-key keypad.
Definition: osk.h:110
PS3 Pad/controller.
Definition: osk.h:88
On-screen keyboard separate window options data structure.
Definition: osk.h:237
s32 oskSetInitialInputDevice(oskInputDevice input)
Set initial input device.
Show panel by default.
Definition: osk.h:98
oskContinuousMode continuous
Continuous mode.
Definition: osk.h:239
s32 inputWidth
Input field width.
Definition: osk.h:241
oskType
On-screen keyboard type values.
Definition: osk.h:102
Input aborted.
Definition: osk.h:81
oskPoint controlPoint
Panel original control point.
Definition: osk.h:191
Input empty.
Definition: osk.h:82
u16 *message ATTRIBUTE_PRXPTR
Buffer for message.
Definition: osk.h:223
s32 maxLength
Maximum number of characters.
Definition: osk.h:225
On-screen keyboard input field information data structure.
Definition: osk.h:221
s32 oskLoadAsync(sys_mem_container_t container, const oskParam *param, const oskInputFieldInfo *inputInfo)
Open the on-screen keyboard panel.
struct _osk_input_field_info oskInputFieldInfo
On-screen keyboard input field information data structure.
f32 y
Vertical coordinate.
Definition: osk.h:119
s32 oskUnloadAsync(oskCallbackReturnParam *param)
Close the on-screen keyboard panel.
struct _osk_cb_return_param oskCallbackReturnParam
On-screen keyboard return parameters data structure.
On-screen keyboard return parameters data structure.
Definition: osk.h:229
10-key keypad panel.
Definition: osk.h:72
s32 len
Number of characters entered.
Definition: osk.h:232
System panel.
Definition: osk.h:71
u16 *startText ATTRIBUTE_PRXPTR
Initial message.
Definition: osk.h:224
s32 oskSetDeviceMask(u32 mask)
Set on-screen keyboard device mask.
Multiline panel with full keyboard.
Definition: osk.h:107
s32 oskSetLayoutMode(s32 mode)
Set the on-screen keyboard initial layout mode.
s32 oskDisableDimmer()
Disable the on-screen keyboard panel's background dimmer filter.
s32 prohibitFlags
Prohibit flags.
Definition: osk.h:199
Input canceled.
Definition: osk.h:80
u32 reserved
Reserved.
Definition: osk.h:245
oskContinuousMode
On-screen keyboard continuous mode setting values.
Definition: osk.h:93
Separated single line panel.
Definition: osk.h:108
Separated single line panel with full keyboard.
Definition: osk.h:111
Multiline panel.
Definition: osk.h:105
oskInputFieldResult res
Result status.
Definition: osk.h:231
struct _osk_separate_window_option oskSeparateWindowOption
On-screen keyboard separate window options data structure.
Single line panel.
Definition: osk.h:104
Keyboard.
Definition: osk.h:89
struct _osk_param oskParam
On-screen keyboard manager parameters.
Keep panel open.
Definition: osk.h:96
oskKeyLayout
On-screen keyboard initial layout values.
Definition: osk.h:69
oskInputDevice
On-screen keyboard input device values.
Definition: osk.h:86