You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-19 14:31:59 +00:00
Use "enum class" for input enums
This commit is contained in:
@@ -53,10 +53,10 @@ public:
|
||||
struct JoypadEvent {
|
||||
int device = 0;
|
||||
int type = 0;
|
||||
int index = 0;
|
||||
int index = 0; // Can be either JoyAxis or JoyButton.
|
||||
bool pressed = false;
|
||||
float value = 0;
|
||||
int hat = 0;
|
||||
HatMask hat = HatMask::CENTER;
|
||||
};
|
||||
|
||||
private:
|
||||
@@ -65,7 +65,7 @@ private:
|
||||
bool control_mem = false;
|
||||
bool meta_mem = false;
|
||||
|
||||
MouseButton buttons_state = MOUSE_BUTTON_NONE;
|
||||
MouseButton buttons_state = MouseButton::NONE;
|
||||
|
||||
Vector<TouchPos> touch;
|
||||
Point2 hover_prev_pos; // needed to calculate the relative position on hover events
|
||||
|
||||
Reference in New Issue
Block a user