Skip to content

Commit 1c85be1

Browse files
committed
Support Enter key on the numeric keypad
1 parent 5432d30 commit 1c85be1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/lib/platforms/glfw/glfw_input.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ void GLFWInputManager::updateUnifiedControllerState(ControllerState* state)
285285
state->buttons[brlsButton] |= glfwGetKey(this->window, key) != 0;
286286
}
287287

288+
state->buttons[BUTTON_A] |= glfwGetKey(this->window, GLFW_KEY_KP_ENTER) != 0;
288289
state->buttons[BUTTON_X] |= (glfwGetMouseButton(window, GLFW_MOUSE_BUTTON_MIDDLE) == GLFW_PRESS);
289290

290291
state->buttons[BUTTON_BACKSPACE] = glfwGetKey(this->window, GLFW_KEY_BACKSPACE);

0 commit comments

Comments
 (0)