YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
26 stars 8 forks source link

Adding a virtual Key for the "Numpad Enter" key #4528

Open dev-coding-dev opened 10 months ago

dev-coding-dev commented 10 months ago

Is your feature request related to a problem?

The key isn't currently mapped. It has no vk_ mapping and when using keyboard_lastkey it returns the regular enter key. Where as all the other numpad keys have been assigned their own values.

Describe the solution you'd like

For it to receive it's own be vk mapping and for the value to be assigned 108. It's right in the middle of the other numpad characters and seems to be where it's meant to go according to online documentation.

A complete list of the game maker virtual keys and their matching values would also be appreciated.

Describe alternatives you've considered

No response

Additional context

No response

rwkay commented 10 months ago

Due to legacy Windows reason telling the normal RETURN key and the NUMPAD Enter key is more difficult than it should be - see https://stackoverflow.com/questions/51173472/how-to-determine-if-a-numpad-is-present-and-how-to-obtain-the-scan-code-for-the#:~:text=Both%20Enter%20and%20Numpad%20Enter,codes%20on%20different%20keyboard%20layouts.

I am moving this one to the backlog as it is not a simple thing to change and will need testing across multiple devices.

dev-coding-dev commented 10 months ago

Fair enough. Thanks for looking into it :D