Keys.NumpadEnter [Input]
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 7.8k
- Forks
- 1.2k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 49
Description
Release Type: Official Release
Version: 4.1.0.1898
Confirmed Platform(s): Windows (other were not checked for that)
Describe the bug
If you try to check if numpad enter is pressed, the system always returns false no matter if the button is pressed or not.
if (Input.IsKeyDown(Keys.NumPadEnter))
{
//action
}
However, if you use Keys.Enter instead, both buttons are read like the same button.
Expected behavior
Input.IsKeyDown(Keys.NumPadEnter) returns true only if numpad Enter is pressed.
Input.IsKeyDown(Keys.Enter) returns true only if standard Enter is pressed.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Input.IsKeyDown implementation and the Keys.NumPadEnter definition or handling. Reproduce the behavior on Windows, then verify that standard Enter and numpad Enter are reported independently as described in the expected behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100