Skip to content

[MousePointerLock] When pressing ESC while locked, held keys get stuck #2010

@Peeblo-r

Description

@Peeblo-r

Is there an existing issue for this?

Enter the name of the extension

MousePointerLock

Describe the bug of the extension

When you lock the mouse and then press the ESC key (specifically that key) to unlock it, the keys you were holding at that moment get stuck held. For example, if you're pressing the W key to move forward in a first person shooter and you press the ESC key, the character keeps moving forward even if you're not holding the W key anymore, it'll only stop once you press that key again. I've seen many browser games that lock the mouse and do not have this issue.

Steps to reproduce

  1. Lock the mouse
  2. Hold a key
  3. Press the Escape key
  4. Stop holding the key
  5. The game will think you're still holding it down until you press it again

GDevelop platform

Desktop

GDevelop version

5.6.254

Platform info

Details

OS (e.g. Windows, Linux, macOS, Android, iOS)

OS Version (e.g. Windows 10, macOS 10.15)

Browser(For Web) (e.g. Chrome, Firefox, Safari)

Device(For Mobile) (e.g. iPhone 12, Samsung Galaxy S21)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    ⚠ Issue with an extensionAn issue with an extension that is already on the extension store

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions