#ifndef PERIPHERALS_H_ #define PERIPHERALS_H_ #include "GLFW/glfw3.h" extern GLdouble mouse_x, mouse_y; extern GLfloat M[16]; extern bool is_dragging, ctrl_pressed; extern GLdouble drag_start_x, drag_start_y; // function that is called whenever a keyboard event occurs; defines how // keyboard input will be handled void key_callback(GLFWwindow *window, int key, int scancode, int action, int mods); // function that is called whenever a mouse or trackpad button press event // occurs void mouse_button_callback(GLFWwindow *window, int button, int action, int mods); // function that is called whenever a cursor motion event occurs void cursor_pos_callback(GLFWwindow *window, double xpos, double ypos); #endif