2D Run-and-gun shooter inspired by One Man's Doomsday, Counter-Strike, and Metal Slug.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

SDL_joystick.mock.h 723 B

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