From 4b23f2fcc44fc636d8d4dbe94881cf937c54199b Mon Sep 17 00:00:00 2001 From: Schark Date: Fri, 12 May 2023 01:31:13 -0700 Subject: Mouse inputs working --- src/player.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/player.h') diff --git a/src/player.h b/src/player.h index 1ee8154..e45dfd9 100644 --- a/src/player.h +++ b/src/player.h @@ -3,12 +3,12 @@ typedef struct Player { float pos_x, pos_y; - float dir_x, dir_y; + float dir, dir_x, dir_y; float plane_x, plane_y; float move_speed; - float rot_speed; + float sensitivity; } Player; -void move_player(Player *player, GLFWwindow* window); +void move_player(Player *player, GLFWwindow* window, double* mouse_x, double* mouse_y, double width, double height); #endif -- cgit v1.2.3-18-g5258