wavelength 1.0.0
Loading...
Searching...
No Matches
controllerdisplay.h
Go to the documentation of this file.
1#pragma once
2
3#include "game/inputmap.h"
4
12public:
20
29
36 void Init();
37
44 void Show();
45
52 void Hide();
53
61 void SetHighlight(bool bHighlight);
62
70 void SetOption(bool bOption);
71
78 void Clear();
79
89
90private:
97 void Refresh();
98
108 static const char *GetButtonGlyph(InputMap *pMap, int nAction);
109
110 int mShowCount;
111 int mOption;
112 int mHighlight;
113};
114
Display of the controller buttons on the screen around a song.
Definition controllerdisplay.h:11
void RefreshLabels()
Refresh the button labels from the first player's controller bindings.
void Init()
Refresh the display and its button labels.
void SetOption(bool bOption)
Show the display in one of its two modes.
void SetHighlight(bool bHighlight)
Highlight the buttons of every lane or clear the highlight.
static ControllerDisplay * shared()
Report the display.
ControllerDisplay()
Construct a hidden display.
void Clear()
Clear the mode, the highlight, and the count.
void Show()
Add one request to show the display.
void Hide()
Withdraw one request to show the display.
The actions a player's controller buttons and analogue sticks are bound to.
Definition inputmap.h:15
ControllerDisplay * TheControllerDisplay
The display of the controller buttons.