forked from Moi-poke/Poke-Controller-Modified
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCommands.h
More file actions
54 lines (40 loc) · 1.29 KB
/
Commands.h
File metadata and controls
54 lines (40 loc) · 1.29 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
52
53
54
/** \file
*
* Header file for Commands.c.
*/
#pragma once
#include "Joystick.h"
typedef struct {
Buttons_t button;
uint16_t duration;
} Command;
bool GetNextReportFromCommands(const Command* const commands, int step_size, USB_JoystickReport_Input_t* const ReportData);
// The commands that run independently from a PC
// Store arrays in Flash memory to save a SRAM data capacity
// controller sync (use for ease of debugging)
extern const Command sync[];
extern const int sync_size;
// controller unsync
extern const Command unsync[];
extern const int unsync_size;
// Mash A Button
extern const Command mash_a_commands[];
extern const int mash_a_size;
// Mash X Button (for debug)
extern const Command mash_x_commands[];
extern const int mash_x_size;
// Mash HOME Button (for debug)
extern const Command mash_home_commands[];
extern const int mash_home_size;
// Auto League
extern const Command auto_league_commands[];
extern const int auto_league_size;
// Infinity Watt
extern const Command inf_watt_commands[];
extern const int inf_watt_size;
// Pick Up Berry
extern const Command pickupberry_commands[];
extern const int pickupberry_size;
//Change the Year
extern const Command changetheyear_commands[];
extern const int changetheyear_size;