From df5f113e746a9c6941ccb7c2076aa52ece33923e Mon Sep 17 00:00:00 2001 From: arngo <27396817+arngo@users.noreply.github.com> Date: Sat, 11 May 2024 18:42:48 -0400 Subject: controller init stuff --- src/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 3c92fce..ccde73d 100644 --- a/src/main.c +++ b/src/main.c @@ -56,6 +56,8 @@ Player player_one = { .speed = 1.0f/60.0f }; +struct controller_data controllers; + //------------------------------------------------------------------------------------ // Program main entry point //------------------------------------------------------------------------------------ @@ -77,7 +79,7 @@ int main(void) camera.fovy = 45.0f; camera.projection = CAMERA_PERSPECTIVE; - + controller_init(); Texture2D texture = LoadTexture("rom:/cubicmap_atlas32x32.png"); // Load map texture //Model model = LoadModel("rom:/plane.m3d"); @@ -97,6 +99,7 @@ int main(void) // Update //----------------------------------------------------- updateController(); + controller_read(&controllers); movePlayer(&player_one); -- cgit v1.2.3