Etterna 0.74.4
Loading...
Searching...
No Matches
CodeDetector.h
1/* CodeDetector - Uses InputQueue to detect input of codes. */
2
3#ifndef CODE_DETECTOR_H
4#define CODE_DETECTOR_H
5
6#include "GameInput.h"
7
8enum Code
9{
10 Code_PrevSteps1,
11 Code_PrevSteps2,
12 Code_NextSteps1,
13 Code_NextSteps2,
14 CODE_NEXT_SORT1,
15 CODE_NEXT_SORT2,
16 CODE_NEXT_SORT3,
17 CODE_NEXT_SORT4,
18 CODE_MODE_MENU1,
19 CODE_MODE_MENU2,
20 CODE_MIRROR,
21 CODE_BACKWARDS,
22 CODE_LEFT,
23 CODE_RIGHT,
24 CODE_SHUFFLE,
25 CODE_SUPER_SHUFFLE,
26 CODE_NEXT_SCROLL_SPEED,
27 CODE_PREVIOUS_SCROLL_SPEED,
28 CODE_REVERSE,
29 CODE_MINES,
30 CODE_HIDDEN,
31 CODE_CANCEL_ALL,
32 CODE_NEXT_GROUP,
33 CODE_PREV_GROUP,
34 CODE_SAVE_SCREENSHOT1,
35 CODE_SAVE_SCREENSHOT2,
36 CODE_CANCEL_ALL_PLAYER_OPTIONS,
37 CODE_CLOSE_CURRENT_FOLDER1,
38 CODE_CLOSE_CURRENT_FOLDER2,
39 NUM_Code // leave this at the end
40};
41
43{
44 public:
45 static void RefreshCacheItems(
46 std::string sClass =
47 ""); // call this before checking codes, but call infrequently
48 static bool EnteredPrevSteps(GameController controller);
49 static bool EnteredNextSteps(GameController controller);
50 static bool EnteredNextSort(GameController controller);
51 static bool EnteredModeMenu(GameController controller);
52 static bool DetectAndAdjustMusicOptions(GameController controller);
53 static bool EnteredCode(GameController controller, Code code);
54 static bool EnteredPrevGroup(GameController controller);
55 static bool EnteredNextGroup(GameController controller);
56 static bool EnteredCloseFolder(GameController controller);
57
58 // todo: move to PlayerOptions.h -aj
59 void ChangeScrollSpeed(GameController controller, bool bIncrement);
60};
61
62#endif
Definition CodeDetector.h:43