2D Run-and-gun shooter inspired by One Man's Doomsday, Counter-Strike, and Metal Slug.
 
 
 
 
 
 

26 строки
575 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. SDL_Event sdl_event;
  9. IZ_Action action[PLAYERS];
  10. IZ_KeyboardState keyboard_state[PLAYERS];
  11. IZ_JoystickState joystick_state[PLAYERS];
  12. IZ_MIDIInputState midi_input_state[PLAYERS];
  13. } IZ_InputState;
  14. void IZ_InputHandleSDLEvents(IZ_InputState*);
  15. void IZ_InputHandlePortMIDIEvents(PmEvent, IZ_InputState*);
  16. IZ_ProcedureResult IZ_InputInitialize(const char*, IZ_InputState*);
  17. void IZ_InputTeardown(IZ_InputState*);
  18. #endif