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
628 B

  1. #ifndef SDL_JOYSTICK_MOCK_H
  2. #define SDL_JOYSTICK_MOCK_H
  3. #include "../src/packages/test/IZ_test.h"
  4. typedef struct _SDL_Joystick {} SDL_Joystick;
  5. mock(SDL_JoystickOpen) SDL_Joystick* SDL_JoystickOpen(int device_index) {
  6. static SDL_Joystick joystick;
  7. mock_return(SDL_JoystickOpen) &joystick;
  8. }
  9. mock(SDL_NumJoysticks) int SDL_NumJoysticks(void) {
  10. mock_return(SDL_NumJoysticks) 1;
  11. }
  12. mock(SDL_JoystickInstanceID) int SDL_JoystickInstanceID(SDL_Joystick* joystick) {
  13. mock_return(SDL_JoystickInstanceID) 0;
  14. }
  15. mock(SDL_JoystickClose) void SDL_JoystickClose(SDL_Joystick* _joystick) {
  16. mock_return(SDL_JoystickClose);
  17. }
  18. #endif