2D Run-and-gun shooter inspired by One Man's Doomsday, Counter-Strike, and Metal Slug.
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

SDL_joystick.mock.h 628 B

12345678910111213141516171819202122232425
  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