2D Run-and-gun shooter inspired by One Man's Doomsday, Counter-Strike, and Metal Slug.
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.
 
 
 
 
 
 

26 lines
644 B

  1. #ifndef IZ_INPUT_H
  2. #define IZ_INPUT_H
  3. #include "IZ_action.h"
  4. #include "IZ_keyboard.h"
  5. #include "IZ_gamecontroller.h"
  6. #include "IZ_midi.h"
  7. #include "../../log/IZ_log.h"
  8. typedef struct {
  9. IZ_Action action[IZ_PLAYERS];
  10. IZ_KeyboardState keyboard_state[IZ_PLAYERS];
  11. IZ_GameControllerState game_controller_state[IZ_PLAYERS];
  12. IZ_MIDIInputState midi_input_state[IZ_PLAYERS];
  13. } IZ_InputState;
  14. void IZ_InputHandleSDLEvents(IZ_InputState*, SDL_Event);
  15. void IZ_InputHandlePortMIDIEvents(IZ_InputState*, PmEvent);
  16. IZ_ProcedureResult IZ_InputInitialize(IZ_InputState*, const char*, u8, const char*[]);
  17. void IZ_InputTeardown(IZ_InputState*);
  18. #endif