diff options
author | Thaddeus Crews <repiteo@outlook.com> | 2024-10-21 16:39:10 -0500 |
---|---|---|
committer | Thaddeus Crews <repiteo@outlook.com> | 2024-10-21 16:39:10 -0500 |
commit | ecc2eb73fc7532b7352274fb8145850bafaf6c20 (patch) | |
tree | b7a4ee45f8c5b75d174bb6ad2615988516a458f3 /core/input/input_event.h | |
parent | 975f42227f3870db153ead3f90da95e4c32a6593 (diff) | |
parent | 916d480686e339746ac4fc89079c26fe72caad53 (diff) | |
download | redot-engine-ecc2eb73fc7532b7352274fb8145850bafaf6c20.tar.gz |
Merge pull request #97707 from Sauermann/fix-input-device-clash
Fix `InputEvent` device id clash
Diffstat (limited to 'core/input/input_event.h')
-rw-r--r-- | core/input/input_event.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/input/input_event.h b/core/input/input_event.h index 19176f748e..80bca28fbf 100644 --- a/core/input/input_event.h +++ b/core/input/input_event.h @@ -62,8 +62,9 @@ protected: static void _bind_methods(); public: - static const int DEVICE_ID_EMULATION; - static const int DEVICE_ID_INTERNAL; + inline static constexpr int DEVICE_ID_EMULATION = -1; + inline static constexpr int DEVICE_ID_INTERNAL = -2; + inline static constexpr int DEVICE_ID_ALL_DEVICES = -3; // Signify that a given Action can be triggered by any device. void set_device(int p_device); int get_device() const; |