diff --git a/README.md b/README.md index 6f9e775a3..bb5c0de5b 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/deps/glfw/tests/joysticks.c b/deps/glfw/tests/joysticks.c index 0d6b2c3a3..b9ce230bc 100644 --- a/deps/glfw/tests/joysticks.c +++ b/deps/glfw/tests/joysticks.c @@ -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)