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.
|
- #ifndef SDL_JOYSTICK_MOCK_H
- #define SDL_JOYSTICK_MOCK_H
-
- #include "../src/packages/test/IZ_test.h"
-
- typedef struct _SDL_Joystick {} SDL_Joystick;
-
- mock(SDL_JoystickOpen) SDL_Joystick* SDL_JoystickOpen(int device_index) {
- static SDL_Joystick joystick;
- mock_return(SDL_JoystickOpen) &joystick;
- }
-
- mock(SDL_NumJoysticks) int SDL_NumJoysticks(void) {
- mock_return(SDL_NumJoysticks) 1;
- }
-
- mock(SDL_JoystickInstanceID) int SDL_JoystickInstanceID(SDL_Joystick* joystick) {
- mock_return(SDL_JoystickInstanceID) 0;
- }
-
- #endif
|