altv-issues icon indicating copy to clipboard operation
altv-issues copied to clipboard

Make keypress events capture gamepad input

Open Unnvaldr opened this issue 5 years ago • 7 comments

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

Unnvaldr avatar Dec 21 '19 22:12 Unnvaldr

If I understand you correctly, you could use GameControls natives for this.

EtzBetz avatar Dec 22 '19 00:12 EtzBetz

Apparently you did not understand me well again, enhancement is concerning keypress events, which lacks gamepad input capture

Unnvaldr avatar Dec 22 '19 16:12 Unnvaldr

Definitely needed. Same for Mouse Button 3/4/5.

LameuleFR avatar Dec 28 '19 14:12 LameuleFR

Related to #77

Unnvaldr avatar Feb 10 '20 14:02 Unnvaldr

This is indeed needed! on(eventName: "keyup", listener: (key: number) => void): void doesn't capture controller and mouse key press

iGThomas avatar Apr 26 '20 18:04 iGThomas

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

ZackaryH8 avatar Aug 23 '21 20:08 ZackaryH8

It would be great if those Gamepad input return proportional sticks inputs ! :)

xenicle avatar Oct 06 '22 13:10 xenicle