pspsdk-1.0+beta2
Main Page
Modules
Data Structures
Files
File List
Globals
psputility_osk.h
Go to the documentation of this file.
1
/*
2
* PSP Software Development Kit - http://www.pspdev.org
3
* -----------------------------------------------------------------------
4
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
5
*
6
* psputility_osk.h - Definitions and Functions for OSK section of
7
* the pspUtility library
8
*
9
* Copyright (c) 2006 McZonk
10
* Copyright (c) 2008 InsertWittyName <tias_dp@hotmail.com>
11
*
12
* $Id: psputility_osk.h 2433 2008-10-15 10:00:27Z iwn $
13
*/
14
#ifndef PSPOSK_H
15
#define PSPOSK_H
16
17
#ifdef __cplusplus
18
extern
"C"
{
19
#endif
20
21
#include <
psptypes.h
>
22
26
enum
SceUtilityOskInputLanguage
27
{
28
PSP_UTILITY_OSK_LANGUAGE_DEFAULT
= 0x00,
29
PSP_UTILITY_OSK_LANGUAGE_JAPANESE
= 0x01,
30
PSP_UTILITY_OSK_LANGUAGE_ENGLISH
= 0x02,
31
PSP_UTILITY_OSK_LANGUAGE_FRENCH
= 0x03,
32
PSP_UTILITY_OSK_LANGUAGE_SPANISH
= 0x04,
33
PSP_UTILITY_OSK_LANGUAGE_GERMAN
= 0x05,
34
PSP_UTILITY_OSK_LANGUAGE_ITALIAN
= 0x06,
35
PSP_UTILITY_OSK_LANGUAGE_DUTCH
= 0x07,
36
PSP_UTILITY_OSK_LANGUAGE_PORTUGESE
= 0x08,
37
PSP_UTILITY_OSK_LANGUAGE_RUSSIAN
= 0x09,
38
PSP_UTILITY_OSK_LANGUAGE_KOREAN
= 0x0a
39
};
40
44
enum
SceUtilityOskState
45
{
46
PSP_UTILITY_OSK_DIALOG_NONE
= 0,
47
PSP_UTILITY_OSK_DIALOG_INITING
,
48
PSP_UTILITY_OSK_DIALOG_INITED
,
49
PSP_UTILITY_OSK_DIALOG_VISIBLE
,
50
PSP_UTILITY_OSK_DIALOG_QUIT
,
51
PSP_UTILITY_OSK_DIALOG_FINISHED
52
};
53
57
enum
SceUtilityOskResult
58
{
59
PSP_UTILITY_OSK_RESULT_UNCHANGED
= 0,
60
PSP_UTILITY_OSK_RESULT_CANCELLED
,
61
PSP_UTILITY_OSK_RESULT_CHANGED
62
};
63
67
enum
SceUtilityOskInputType
68
{
69
PSP_UTILITY_OSK_INPUTTYPE_ALL
= 0x00000000,
70
PSP_UTILITY_OSK_INPUTTYPE_LATIN_DIGIT
= 0x00000001,
71
PSP_UTILITY_OSK_INPUTTYPE_LATIN_SYMBOL
= 0x00000002,
72
PSP_UTILITY_OSK_INPUTTYPE_LATIN_LOWERCASE
= 0x00000004,
73
PSP_UTILITY_OSK_INPUTTYPE_LATIN_UPPERCASE
= 0x00000008,
74
PSP_UTILITY_OSK_INPUTTYPE_JAPANESE_DIGIT
= 0x00000100,
75
PSP_UTILITY_OSK_INPUTTYPE_JAPANESE_SYMBOL
= 0x00000200,
76
PSP_UTILITY_OSK_INPUTTYPE_JAPANESE_LOWERCASE
= 0x00000400,
77
PSP_UTILITY_OSK_INPUTTYPE_JAPANESE_UPPERCASE
= 0x00000800,
78
// http://en.wikipedia.org/wiki/Hiragana
79
PSP_UTILITY_OSK_INPUTTYPE_JAPANESE_HIRAGANA
= 0x00001000,
80
// http://en.wikipedia.org/wiki/Katakana
81
// Half-width Katakana
82
PSP_UTILITY_OSK_INPUTTYPE_JAPANESE_HALF_KATAKANA
= 0x00002000,
83
PSP_UTILITY_OSK_INPUTTYPE_JAPANESE_KATAKANA
= 0x00004000,
84
// http://en.wikipedia.org/wiki/Kanji
85
PSP_UTILITY_OSK_INPUTTYPE_JAPANESE_KANJI
= 0x00008000,
86
PSP_UTILITY_OSK_INPUTTYPE_RUSSIAN_LOWERCASE
= 0x00010000,
87
PSP_UTILITY_OSK_INPUTTYPE_RUSSIAN_UPPERCASE
= 0x00020000,
88
PSP_UTILITY_OSK_INPUTTYPE_KOREAN
= 0x00040000,
89
PSP_UTILITY_OSK_INPUTTYPE_URL
= 0x00080000
90
};
91
95
typedef
struct
_SceUtilityOskData
96
{
98
int
unk_00
;
100
int
unk_04
;
102
int
language
;
104
int
unk_12
;
106
int
inputtype
;
108
int
lines
;
110
int
unk_24
;
112
unsigned
short
*
desc
;
114
unsigned
short
*
intext
;
116
int
outtextlength
;
118
unsigned
short
*
outtext
;
120
int
result
;
122
int
outtextlimit
;
123
124
}
SceUtilityOskData
;
125
129
typedef
struct
_SceUtilityOskParams
130
{
131
pspUtilityDialogCommon
base
;
133
int
datacount
;
135
SceUtilityOskData
*
data
;
137
int
state
;
139
int
unk_60
;
140
141
}
SceUtilityOskParams
;
142
150
int
sceUtilityOskInitStart
(
SceUtilityOskParams
* params);
151
159
int
sceUtilityOskShutdownStart
(
void
);
160
168
int
sceUtilityOskUpdate
(
int
n);
169
175
int
sceUtilityOskGetStatus
(
void
);
176
177
#ifdef __cplusplus
178
}
179
#endif
180
181
#endif
src
utility
psputility_osk.h
Generated on Sat Apr 9 2016 07:00:25 for pspsdk-1.0+beta2 by
1.8.1.2