-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcontroller_test.h
More file actions
executable file
·51 lines (39 loc) · 1.26 KB
/
controller_test.h
File metadata and controls
executable file
·51 lines (39 loc) · 1.26 KB
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
#ifndef CONTROLLERTEST
#define CONTROLLERTEST
#include <jagdefs.h>
#include <jagtypes.h>
#include <stdlib.h>
#include <interrupt.h>
#include <display.h>
#include <sprite.h>
#include <collision.h>
#include <joypad.h>
#include <screen.h>
#include <blit.h>
#include <console.h>
#include <fb2d.h>
#include <lz77.h>
#include <sound.h>
#include "common_assets.h"
//control check
#define CONTROLLERSTOTAL 8
#define DPADBUTTONSTOTAL 4 * CONTROLLERSTOTAL
#define REDBUTTONSTOTAL 3 * CONTROLLERSTOTAL
#define GREYBUTTONSTOTAL 14 * CONTROLLERSTOTAL
screen *dpadButtonsScreen[DPADBUTTONSTOTAL]; //0 - dpad up, 1 - dpad right, 2 - dpad down, 3, dpad left
sprite *dpadButtonsSprite[DPADBUTTONSTOTAL];
screen *redButtonsScreen[REDBUTTONSTOTAL]; //0 - A, 1 - B, 2 - C
sprite *redButtonsSprite[REDBUTTONSTOTAL];
screen *greyButtonsScreen[GREYBUTTONSTOTAL]; //0 - pause, 1 - option, 2 - 11 number pad, 12 - star, 13 - hashtag
sprite *greyButtonsSprite[GREYBUTTONSTOTAL];
phrase *dpadButtonsHighlight;
phrase *redButtonsHighlight;
phrase *greButtonsHighlight;
screen *teamtapCategoryScreen;
sprite *teamtapCategorySprite;
textBox *teamtapTextBox[2];
textBox *controllerTextBox[8];
void ControllerTest();
void controlCheck(unsigned long j, int joypadID);
void teamTapCheck(globalSettings *s);
#endif