2D Run-and-gun shooter inspired by One Man's Doomsday, Counter-Strike, and Metal Slug.
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
518 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. #endif