summaryrefslogtreecommitdiff
path: root/src/player.h
diff options
context:
space:
mode:
authorSchark <jordan@schark.online>2023-05-12 01:31:13 -0700
committerSchark <jordan@schark.online>2023-05-12 01:31:13 -0700
commit4b23f2fcc44fc636d8d4dbe94881cf937c54199b (patch)
treede316f938ce661052de23b089760aba7c1268402 /src/player.h
parentdc8ad2d7f67e47b00ed0ecb77fae976275fc7a16 (diff)
downloadgamedev-4b23f2fcc44fc636d8d4dbe94881cf937c54199b.tar.gz
gamedev-4b23f2fcc44fc636d8d4dbe94881cf937c54199b.zip
Mouse inputs working
Diffstat (limited to 'src/player.h')
-rw-r--r--src/player.h6
1 files changed, 3 insertions, 3 deletions
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