cleanup + unused arguments

This commit is contained in:
Konstantin Käfer
2014-04-16 10:55:06 -04:00
parent 74cb7edb5b
commit 797f590cfb
11 changed files with 22 additions and 30 deletions

View File

@@ -64,15 +64,10 @@ public:
glfwSetWindowSizeCallback(window, resize);
glfwSetFramebufferSizeCallback(window, resize);
glfwSetScrollCallback(window, scroll);
glfwSetCharCallback(window, character);
glfwSetKeyCallback(window, key);
}
static void character(GLFWwindow *window, unsigned int codepoint) {
}
static void key(GLFWwindow *window, int key, int scancode, int action, int mods) {
static void key(GLFWwindow *window, int key, int /*scancode*/, int action, int mods) {
MapView *mapView = (MapView *)glfwGetWindowUserPointer(window);
if (action == GLFW_RELEASE) {
@@ -96,7 +91,7 @@ public:
}
}
static void scroll(GLFWwindow *window, double xoffset, double yoffset) {
static void scroll(GLFWwindow *window, double /*xoffset*/, double yoffset) {
MapView *mapView = (MapView *)glfwGetWindowUserPointer(window);
double delta = yoffset * 40;