medfall

A super great game engine
Log | Files | Refs

commit dc0803f0cc4496fbc79d149a10cbd4b7f99fdc03
parent b2e8ce37fc53f72154c1ab42c59d20c54267147c
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sat Jul 22 23:47:51 +0300

F1-F4 set break1-break4

Diffstat:
main.cc | 18++++++++++++++++++
1 file changed, 18 insertions(+), 0 deletions(-)
diff --git a/main.cc b/main.cc @@ -95,6 +95,24 @@ int main( int argc, char ** argv ) { input.keys[ KEY_MINUS ] = glfwGetKey( window, GLFW_KEY_MINUS ) == GLFW_PRESS; input.keys[ KEY_EQUALS ] = glfwGetKey( window, GLFW_KEY_EQUAL ) == GLFW_PRESS; + input.keys[ KEY_F1 ] = glfwGetKey( window, GLFW_KEY_F1 ) == GLFW_PRESS; + input.keys[ KEY_F2 ] = glfwGetKey( window, GLFW_KEY_F2 ) == GLFW_PRESS; + input.keys[ KEY_F3 ] = glfwGetKey( window, GLFW_KEY_F3 ) == GLFW_PRESS; + input.keys[ KEY_F4 ] = glfwGetKey( window, GLFW_KEY_F4 ) == GLFW_PRESS; + input.keys[ KEY_F5 ] = glfwGetKey( window, GLFW_KEY_F5 ) == GLFW_PRESS; + input.keys[ KEY_F6 ] = glfwGetKey( window, GLFW_KEY_F6 ) == GLFW_PRESS; + input.keys[ KEY_F7 ] = glfwGetKey( window, GLFW_KEY_F7 ) == GLFW_PRESS; + input.keys[ KEY_F8 ] = glfwGetKey( window, GLFW_KEY_F8 ) == GLFW_PRESS; + input.keys[ KEY_F9 ] = glfwGetKey( window, GLFW_KEY_F9 ) == GLFW_PRESS; + input.keys[ KEY_F10 ] = glfwGetKey( window, GLFW_KEY_F10 ) == GLFW_PRESS; + input.keys[ KEY_F11 ] = glfwGetKey( window, GLFW_KEY_F11 ) == GLFW_PRESS; + input.keys[ KEY_F12 ] = glfwGetKey( window, GLFW_KEY_F12 ) == GLFW_PRESS; + + break1 = input.keys[ KEY_F1 ]; + break2 = input.keys[ KEY_F2 ]; + break3 = input.keys[ KEY_F3 ]; + break4 = input.keys[ KEY_F4 ]; + double xpos, ypos; glfwGetCursorPos( window, &xpos, &ypos ); input.mouse_dx = xpos - last_xpos;