Skip to content

game keeping input while nui is focused #2449

@Cu-chi

Description

@Cu-chi

What happened?

Holding an input and putting the NUI focus make the input to keep the 'pressed' state, even when unfocusing the NUI.

Expected result

The inputs to be 'refreshed' so it updates their states

Reproduction steps

  1. Press any input
  2. Focus NUI
  3. Unfocus NUI

repro.zip
With the repro file:

  1. Press any input
  2. Focus NUI by pressing E
  3. Unfocus NUI by using the command 'repro'

Importancy

Slight inconvenience

Area(s)

FiveM

Specific version(s)

FiveM 7788

Additional information

tested only on FiveM, could be the same on RedM.
Maybe a param in the SetNuiFocus native to allow us to reset the states of inputs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions