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.
 
 
 
 
 
 

25 lines
595 B

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