mirror of
https://github.com/glfw/glfw.git
synced 2024-11-26 03:52:01 +00:00
Fixed uses of renamed symbol.
This commit is contained in:
parent
eff85f9500
commit
1f0122e05c
@ -56,7 +56,7 @@ static void key_callback(GLFWwindow* window, int key, int action, int mods)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case GLFW_KEY_V:
|
case GLFW_KEY_V:
|
||||||
if (mods == GLFW_MOD_CTRL)
|
if (mods == GLFW_MOD_CONTROL)
|
||||||
{
|
{
|
||||||
const char* string;
|
const char* string;
|
||||||
|
|
||||||
@ -69,7 +69,7 @@ static void key_callback(GLFWwindow* window, int key, int action, int mods)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case GLFW_KEY_C:
|
case GLFW_KEY_C:
|
||||||
if (mods == GLFW_MOD_CTRL)
|
if (mods == GLFW_MOD_CONTROL)
|
||||||
{
|
{
|
||||||
const char* string = "Hello GLFW World!";
|
const char* string = "Hello GLFW World!";
|
||||||
glfwSetClipboardString(window, string);
|
glfwSetClipboardString(window, string);
|
||||||
|
@ -215,7 +215,7 @@ static const char* get_mods_name(int mods)
|
|||||||
|
|
||||||
if (mods & GLFW_MOD_SHIFT)
|
if (mods & GLFW_MOD_SHIFT)
|
||||||
strcat(name, " shift");
|
strcat(name, " shift");
|
||||||
if (mods & GLFW_MOD_CTRL)
|
if (mods & GLFW_MOD_CONTROL)
|
||||||
strcat(name, " control");
|
strcat(name, " control");
|
||||||
if (mods & GLFW_MOD_ALT)
|
if (mods & GLFW_MOD_ALT)
|
||||||
strcat(name, " alt");
|
strcat(name, " alt");
|
||||||
|
Loading…
Reference in New Issue
Block a user