diff options
| author | arngo <[email protected]> | 2024-05-11 18:42:48 -0400 |
|---|---|---|
| committer | arngo <[email protected]> | 2024-05-11 18:42:48 -0400 |
| commit | df5f113e746a9c6941ccb7c2076aa52ece33923e (patch) | |
| tree | 51a1e00955202fdd88a6e7fab40d60548ae2db91 /src/main.c | |
| parent | 918e33f8cf77036b0b87ca03aa10d9954b6569e1 (diff) | |
| download | tojam2024-df5f113e746a9c6941ccb7c2076aa52ece33923e.tar.gz tojam2024-df5f113e746a9c6941ccb7c2076aa52ece33923e.zip | |
controller init stuff
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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); |
