-
Notifications
You must be signed in to change notification settings - Fork 2
/
Keyboard.h
81 lines (71 loc) · 1.79 KB
/
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/*
Zelda Return of the Hylian
Copyright (C) 2005-2008 Vincent Jouillat
Please send bugreports with examples or suggestions to www.zeldaroth.fr
*/
#ifndef __KEYBOARD_H__
#define __KEYBOARD_H__
#include "Carte.h"
#include "Encyclopedie.h"
class Keyboard {
public :
Keyboard(Jeu* jeu, Carte* carte, Encyclopedie* encycl, SDL_Surface* screen, int m);
int gererClavier();
int getMode();
void setMode(int i);
int getLigne();
int getColonne();
int getSave(int i);
void setSave(int i, int val);
int getLigneOption();
int getVolume();
int getVolson();
int getLigneRecord();
int getColonneRecord();
int getTemps();
void setTemps(int t);
int getRang(int i);
void setRang(int i);
int getLigneVal();
int getIntro();
void saveP();
private :
void loadP();
int pollKey(SDL_Event event);
void pollKeys(Uint8* keys);
void toggleFullScreen();
int buttonPressed(int i);
int stickPosition(int stick, int direction);
Jeu* gpJeu;
Carte* gpCarte;
Encyclopedie* gpEncyclopedie;
int mode;
int gFullScreen;
SDL_Surface* gpScreen;
int tmp;
int tmpx;
int tmpc;
int tmpw;
int tmpt;
int tmpp;
int tmpm;
int ligne;
int colonne;
int save[3];
int ligneOption;
int volume;
int volson;
int ligneRecord;
int colonneRecord;
int temps;
int rang[3];
int ligneVal;
int intro;
int verrRun;
SDL_Event event;
Uint8* keys;
#ifdef __PSP2__
SDL_Joystick* joystick;
#endif
};
#endif // Keyboard.h