summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_function.cpp
diff options
context:
space:
mode:
authorMarkus Sauermann <6299227+Sauermann@users.noreply.github.com>2024-10-01 20:56:06 +0200
committerMarkus Sauermann <6299227+Sauermann@users.noreply.github.com>2024-10-20 21:56:41 +0200
commit916d480686e339746ac4fc89079c26fe72caad53 (patch)
treef8df778c7d0f1a4325d2c86564ca52e9bf1e7ee7 /modules/gdscript/gdscript_function.cpp
parentf4af8201bac157b9d47e336203d3e8a8ef729de2 (diff)
downloadredot-engine-916d480686e339746ac4fc89079c26fe72caad53.tar.gz
Fix InputEvent device id clash
`InputMap::ALL_DEVICES` and `InputEvent::DEVICE_ID_EMULATION` have the same value `-1`. Change value of `InputMap::All_DEVICES` so that it's different from `InputEvent::DEVICE_ID_EMULATION`. `InputEvent::DEVICE_ID_EMULATION` is part of the API and can't be changed without potentially breaking projects. Gather all special device constants in a single location inside `InputEvent`. Add a converter to project settings, that takes care of adjusting project files during loading.
Diffstat (limited to 'modules/gdscript/gdscript_function.cpp')
0 files changed, 0 insertions, 0 deletions