summaryrefslogtreecommitdiff
path: root/demo.c
diff options
context:
space:
mode:
authorsanine-a <sanine.not@pm.me>2020-05-23 00:00:39 -0500
committersanine-a <sanine.not@pm.me>2020-05-23 00:00:39 -0500
commit9253d73e8eeec1aed120bea9b8c7c282d8e3d30c (patch)
treeca301ff6b72b1db68802b6d65277daeb7b5026bd /demo.c
parent3cf958fb0836cc07df413792be0266fe80988e00 (diff)
add camera.h documentation
Diffstat (limited to 'demo.c')
-rw-r--r--demo.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/demo.c b/demo.c
index 2aafc46..1719914 100644
--- a/demo.c
+++ b/demo.c
@@ -58,7 +58,7 @@ void mouseCallback(GLFWwindow* window, double x, double y) {
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
void toggle_wireframe(void* data, int action) {
- if (action == HONEY_PRESS_KEY) { wireframe = !wireframe; }
+ if (action == HONEY_KEY_PRESS) { wireframe = !wireframe; }
}
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
@@ -92,13 +92,6 @@ void update(float dt) {
glm_vec3_scale(camera.right, -cameraSpeed*dt, step);
glm_vec3_add(camera.position, step, camera.position);
}
- if (honey_key_down(HONEY_KEY_E)) {
- camera.angle[2] += camera_roll_speed*dt;
- }
- if (honey_key_down(HONEY_KEY_Q)) {
- camera.angle[2] -= camera_roll_speed*dt;
- }
-
}
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */