Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ the client.
- Backquote (`) to write text on any block (signs).
- Arrow keys emulate mouse movement.
- Enter emulates mouse click.
- Left-Shift to crouch
- Esc to use mouse pointer(for maximize)

### Chat Commands

Expand Down
3 changes: 2 additions & 1 deletion deps/glfw/tests/joysticks.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ static void refresh_joysticks(void)
int axis_count, button_count;

free(j->name);
j->name = strdup(glfwGetJoystickName(GLFW_JOYSTICK_1 + i));
const char* jname = glfwGetJoystickName(GLFW_JOYSTICK_1 + i);
j->name = strdup(jname);

axes = glfwGetJoystickAxes(GLFW_JOYSTICK_1 + i, &axis_count);
if (axis_count != j->axis_count)
Expand Down