mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-28 00:35:34 +00:00
TASInputDlg: Use an enum for ID constants
These are all related constants (and it doesn't make sense to allow taking the address of them).
This commit is contained in:
parent
9dd29895cd
commit
f3ab0fc3f8
@ -39,10 +39,17 @@ public:
|
|||||||
void CreateWiiLayout(int num);
|
void CreateWiiLayout(int num);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static constexpr int ID_C_STICK = 1001;
|
enum : int
|
||||||
static constexpr int ID_MAIN_STICK = 1002;
|
{
|
||||||
static constexpr int ID_CC_L_STICK = 1003;
|
ID_C_STICK = 1001,
|
||||||
static constexpr int ID_CC_R_STICK = 1004;
|
ID_MAIN_STICK = 1002,
|
||||||
|
ID_CC_L_STICK = 1003,
|
||||||
|
ID_CC_R_STICK = 1004
|
||||||
|
};
|
||||||
|
|
||||||
|
// Used in the context of creating controls on the fly
|
||||||
|
// This is greater than the last stick enum constant to
|
||||||
|
// prevent ID clashing in wx's event system.
|
||||||
int m_eleID = 1005;
|
int m_eleID = 1005;
|
||||||
|
|
||||||
struct Control
|
struct Control
|
||||||
|
Loading…
x
Reference in New Issue
Block a user