commit c003561264a47b3bb0dc256b92c6025568f3013a
parent e0d4e888e101115086df23a011ffe05b6a553bd4
Author: Michael Savage <mikejsavage@gmail.com>
Date: Sat, 25 Nov 2017 12:56:21 +0200
Add KEY_G
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/keys.h b/keys.h
@@ -12,7 +12,7 @@ enum KeyNames {
KEY_D = 'd',
// KEY_E,
KEY_F = 'f',
- // KEY_G,
+ KEY_G = 'g',
// KEY_H,
KEY_I = 'i',
KEY_J = 'j',
diff --git a/main.cc b/main.cc
@@ -76,6 +76,7 @@ int main( int argc, char ** argv ) {
input.keys[ KEY_A ] = glfwGetKey( window, GLFW_KEY_A ) == GLFW_PRESS;
input.keys[ KEY_D ] = glfwGetKey( window, GLFW_KEY_D ) == GLFW_PRESS;
input.keys[ KEY_F ] = glfwGetKey( window, GLFW_KEY_F ) == GLFW_PRESS;
+ input.keys[ KEY_G ] = glfwGetKey( window, GLFW_KEY_G ) == GLFW_PRESS;
input.keys[ KEY_I ] = glfwGetKey( window, GLFW_KEY_I ) == GLFW_PRESS;
input.keys[ KEY_J ] = glfwGetKey( window, GLFW_KEY_J ) == GLFW_PRESS;
input.keys[ KEY_K ] = glfwGetKey( window, GLFW_KEY_K ) == GLFW_PRESS;