-
Notifications
You must be signed in to change notification settings - Fork 1
/
keyboard.h
57 lines (43 loc) · 955 Bytes
/
keyboard.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
Osk made by Poison from Xtreamlua.com
This is an open software.
I allow people to change/modify my own
code and to publishe it everywhere.
*/
#ifndef DEF_KEYBOARD
#define DEF_KEYBOARD
#include <sstream>
#include <string>
#include <pspkernel.h>
#include <pspdebug.h>
#include <pspdisplay.h>
#include <pspctrl.h>
#include <psppower.h>
#include <pspaudio.h>
#include <pspaudiolib.h>
class Osk
{
public:
Osk();
void Init(SceCtrlData *pad, SDL_Surface *ecran, char *phrase, bool *appuis);
private:
SDL_Surface *m_osk_min;
SDL_Surface *m_osk_maj;
SDL_Surface *m_osk_img;
SDL_Surface *m_osk_selector;
SDL_Rect m_osk_position;
SDL_Rect m_selector_position;
std::string m_sentence;
std::string m_alphabet;
std::string m_alphabet_min;
std::string m_alphabet_maj;
char m_selector;
char m_choix_letter;
char m_appuisCROSS;
char m_appuisRIGHT;
char m_appuisLEFT;
char m_appuisDOWN;
char m_appuisUP;
char m_minuscule;
};
#endif