summaryrefslogtreecommitdiffhomepage
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 4 insertions, 1 deletions
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);