altv-issues
altv-issues copied to clipboard
Make keypress events capture gamepad input
Is your feature request related to a problem? Please describe. N/A
Describe the solution you'd like N/A
Describe alternatives you've considered N/A
Additional context Virtual-Key Codes for gamepad
GamepadA = 195,
GamepadB = 196,
GamepadX = 197,
GamepadY = 198,
GamepadRightShoulder = 199,
GamepadLeftShoulder = 200,
GamepadLeftTrigger = 201,
GamepadRightTrigger = 202,
GamepadDPadUp = 203,
GamepadDPadDown = 204,
GamepadDPadLeft = 205,
GamepadDPadRight = 206,
GamepadMenu = 207,
GamepadView = 208,
GamepadLeftThumbstickButton = 209,
GamepadRightThumbstickButton = 210,
GamepadLeftThumbstickUp = 211,
GamepadLeftThumbstickDown = 212,
GamepadLeftThumbstickRight = 213,
GamepadLeftThumbstickLeft = 214,
GamepadRightThumbstickUp = 215,
GamepadRightThumbstickDown = 216,
GamepadRightThumbstickRight = 217,
GamepadRightThumbstickLeft = 218
If I understand you correctly, you could use GameControls natives for this.
Apparently you did not understand me well again, enhancement is concerning keypress events, which lacks gamepad input capture
Definitely needed. Same for Mouse Button 3/4/5.
Related to #77
This is indeed needed!
on(eventName: "keyup", listener: (key: number) => void): void doesn't capture controller and mouse key press
To add to this further the addition of modifier keys being returned would be great. It would allow developers to check if CTRL or SHIFT is being pressed
It would be great if those Gamepad input return proportional sticks inputs ! :)