Skip to content

(REOPEN) Restore legacy keyboard/mouse device IDs for projects before 4.7#118098

Open
L3GiaBao wants to merge 1 commit intogodotengine:masterfrom
L3GiaBao:restore-legacy-keyboard-mouse-device-ids-for-projects-before-4.7
Open

(REOPEN) Restore legacy keyboard/mouse device IDs for projects before 4.7#118098
L3GiaBao wants to merge 1 commit intogodotengine:masterfrom
L3GiaBao:restore-legacy-keyboard-mouse-device-ids-for-projects-before-4.7

Conversation

@L3GiaBao
Copy link
Copy Markdown

@L3GiaBao L3GiaBao commented Apr 2, 2026

Fix #118025.

Maintain backward compatibility for projects before 4.0:

  • Add a project setting: input_devices/compatibility/legacy_keyboard_mouse_device_ids.
  • Auto-enable it for projects created before 4.7.
  • When enabled, normalize keyboard/mouse events to device=0 at input dispatch and in InputMap event storage.
  • Keep the new IDs as the default for new projects.

My original PR was #118040, but I wrongly deleted the forked repo so it was deleted as well. This is the exact same PR. Sorry maintainers!

@L3GiaBao L3GiaBao requested review from a team as code owners April 2, 2026 00:21
@Nintorch Nintorch added this to the 4.7 milestone Apr 2, 2026
@Nintorch Nintorch requested review from Nintorch and Sauermann April 2, 2026 07:01
@L3GiaBao L3GiaBao force-pushed the restore-legacy-keyboard-mouse-device-ids-for-projects-before-4.7 branch from 9b5aa22 to 41c2d1f Compare April 2, 2026 15:29
@L3GiaBao L3GiaBao requested a review from a team as a code owner April 2, 2026 15:29
@L3GiaBao
Copy link
Copy Markdown
Author

L3GiaBao commented Apr 2, 2026

Forgot to run --doctool. Updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Recent device ID change for keyboards and mice breaks projects that use InputEvent.device directly

2 participants