Revert "Fix InputEvent device id clash" and add a compatibility function
This reverts commit916d480686. Revert "Fix InputEvent crash when opening project" This reverts commitabb9c0f171. Introduce a compatibility function for projects affected by the device id clash reversal Since the reverted PR introduced changes in the project.godot file, it seems prudent to introduce a compatibility function for such affected projects.
This commit is contained in:
parent
a0cd8f187a
commit
bc5e2f9b96
7 changed files with 28 additions and 17 deletions
|
|
@ -62,9 +62,8 @@ protected:
|
|||
static void _bind_methods();
|
||||
|
||||
public:
|
||||
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.
|
||||
static const int DEVICE_ID_EMULATION;
|
||||
static const int DEVICE_ID_INTERNAL;
|
||||
|
||||
void set_device(int p_device);
|
||||
int get_device() const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue