Starter project for SDL2.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
486 B

  1. #include "IZ_app.h"
  2. int IZ_InitializeApp(IZ_App* app) {
  3. IZ_LoadVideoConfig(&app->video_config);
  4. IZ_SaveVideoConfig(&app->video_config);
  5. app->video_update_at = 0u;
  6. for (uint8_t p = 0; p < PLAYERS; p += 1) {
  7. IZ_LoadKeyboardConfig(&app->keyboard_state->config, p);
  8. IZ_SaveKeyboardConfig(&app->keyboard_state->config, p);
  9. IZ_LoadJoystickConfig(&app->joystick_state->config, p);
  10. IZ_SaveJoystickConfig(&app->joystick_state->config, p);
  11. app->actions[p] = 0;
  12. }
  13. return 0;
  14. }