-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGUI_ControlPage.h
56 lines (45 loc) · 1.7 KB
/
GUI_ControlPage.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
/*===================================================================*/
/* */
/* GUI_ControlPage.h : GUI Page for Control Settings */
/* Interface, Variables, and Event Handling */
/* */
/* 2001/12/22 ReGex 0.60 Final Release */
/* */
/*===================================================================*/
#ifndef GUI_CONTROLPAGE
#define GUI_CONTROLPAGE
#include <kos.h>
#include "TextWindow.h"
#include "GUI_MainMenu.h"
//Function Definitions
void setup_control_options_screen();
void Generate_Control_Options_List();
void Handle_Control_Interface(cont_state_t* my_state);
//External Variables Required
extern Window_Style mystyle;
extern Window_Data mydata;
extern Window_Style helpstyle;
extern Window_Data helpdata;
extern int keyhit;
extern int invalida;
extern int xkeyhit;
extern int menuscreen;
extern const int MAX_CLIP_PIXELS;
extern const int title_offset_y;
extern const int Max_Frameskip;
extern char* Main_Keys[];
extern char* Options_Keys[];
extern const int Num_Options_Keys;
typedef struct __attribute__ ((packed, aligned(4))) ControllerSettings_s {
bool analogEnabled;
uint8 selectKey;
uint8 aKey;
uint8 bKey;
} ControllerSettings_t;
#define DC_CONTROLLER_BUTTON_A 0
#define DC_CONTROLLER_BUTTON_B 1
#define DC_CONTROLLER_BUTTON_X 2
#define DC_CONTROLLER_BUTTON_Y 3
#define DC_CONTROLLER_BUTTON_LTRIG 4
extern ControllerSettings_t controllerSettings[];
#endif