浏览代码

Minor tweak

pull/3077/head
Ray 1年前
父节点
当前提交
1b4634702c
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. +1
    -2
      src/rcore.c

+ 1
- 2
src/rcore.c 查看文件

@ -5101,7 +5101,6 @@ void PollInputEvents(void)
// Get current gamepad state
// NOTE: There is no callback available, so we get it manually
// Get remapped buttons
GLFWgamepadstate state = { 0 };
glfwGetGamepadState(i, &state); // This remapps all gamepads so they have their buttons mapped like an xbox controller
@ -5109,7 +5108,7 @@ void PollInputEvents(void)
for (int k = 0; (buttons != NULL) && (k < GLFW_GAMEPAD_BUTTON_DPAD_LEFT + 1) && (k < MAX_GAMEPAD_BUTTONS); k++)
{
n">GamepadButton button = -1;
kt">int button = -1; // GamepadButton enum values assigned
switch (k)
{

正在加载...
取消
保存