UserInputService InputChanged provides Unknown for keyboard input

When hooking into InputChanged, every input event is fired however things like keyboard input / mouse input aren’t passed in properly. Always giving Keycode.Unkown and UserInputState.Changed

You’re never going to get this bug resolved with the information (or lack thereof) you’ve provided. Provide reproduction scripts, files, videos, and the keyboards this issue happens with.

1 Like

It happens to everyone anytime you connect to InputChanged; Theres not much more to give.

Admittedly this API design has issues, but the correct way to get keycodes is to listen to InputBegan (not changed).
E.g. InputType Keyboard will get you an Input.KeyCode with the correct key.
InputChanged is only meant to update continuous events like mouse position changes for example, but it’s using the same underlying Input Object to do so.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.