Inline static variables (part 1)
This commit is contained in:
@ -45,7 +45,7 @@ public:
|
||||
/**
|
||||
* A special value used to signify that a given Action can be triggered by any device
|
||||
*/
|
||||
static int ALL_DEVICES;
|
||||
static constexpr int ALL_DEVICES = -1;
|
||||
|
||||
struct Action {
|
||||
int id;
|
||||
@ -58,7 +58,7 @@ public:
|
||||
static constexpr float DEFAULT_TOGGLE_DEADZONE = 0.5f;
|
||||
|
||||
private:
|
||||
static InputMap *singleton;
|
||||
static inline InputMap *singleton = nullptr;
|
||||
|
||||
mutable HashMap<StringName, Action> input_map;
|
||||
HashMap<String, List<Ref<InputEvent>>> default_builtin_cache;
|
||||
|
||||
Reference in New Issue
Block a user