|
SDL
2.0
|
Include dependency graph for testjoystick.c:Go to the source code of this file.
Macros | |
| #define | SCREEN_WIDTH 640 |
| #define | SCREEN_HEIGHT 480 |
Functions | |
| static void | PrintJoystick (SDL_Joystick *joystick) |
| static void | DrawRect (SDL_Renderer *r, const int x, const int y, const int w, const int h) |
| void | loop (void *arg) |
| int | main (int argc, char *argv[]) |
Variables | |
| static SDL_Window * | window = NULL |
| static SDL_Renderer * | screen = NULL |
| static SDL_Joystick * | joystick = NULL |
| static SDL_bool | done = SDL_FALSE |
| #define SCREEN_HEIGHT 480 |
Definition at line 32 of file testjoystick.c.
| #define SCREEN_WIDTH 640 |
Definition at line 31 of file testjoystick.c.
|
static |
Definition at line 100 of file testjoystick.c.
References done, DrawRect(), i, int(), joystick, PrintJoystick(), screen, SCREEN_HEIGHT, SCREEN_WIDTH, SDL_ALPHA_OPAQUE, SDL_Delay, SDL_FINGERDOWN, SDL_GetError, SDL_HAT_CENTERED, SDL_HAT_DOWN, SDL_HAT_LEFT, SDL_HAT_RIGHT, SDL_HAT_UP, SDL_JOYAXISMOTION, SDL_JOYBALLMOTION, SDL_JOYBUTTONDOWN, SDL_JOYBUTTONUP, SDL_JOYDEVICEADDED, SDL_JOYDEVICEREMOVED, SDL_JOYHATMOTION, SDL_JoystickClose, SDL_JoystickGetAxis, SDL_JoystickGetButton, SDL_JoystickGetHat, SDL_JoystickInstanceID, SDL_JoystickNumAxes, SDL_JoystickNumButtons, SDL_JoystickNumHats, SDL_JoystickOpen, SDL_JoystickRumble, SDL_KEYDOWN, SDL_Log, SDL_MOUSEBUTTONDOWN, SDL_PollEvent, SDL_PRESSED, SDL_QUIT, SDL_RenderClear, SDL_RenderPresent, SDL_SetRenderDrawColor, SDL_TRUE, SDLK_AC_BACK, SDLK_ESCAPE, and SDLK_l.
Referenced by main().
Definition at line 265 of file testjoystick.c.
References done, loop(), NULL, screen, SCREEN_HEIGHT, SCREEN_WIDTH, SDL_ALPHA_OPAQUE, SDL_CreateRenderer, SDL_CreateWindow, SDL_DestroyRenderer, SDL_DestroyWindow, SDL_FALSE, SDL_GetError, SDL_HINT_ACCELEROMETER_AS_JOYSTICK, SDL_Init, SDL_INIT_JOYSTICK, SDL_INIT_VIDEO, SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO, SDL_LogError, SDL_LogSetPriority, SDL_QuitSubSystem, SDL_RenderClear, SDL_RenderPresent, SDL_SetHint, SDL_SetRenderDrawColor, and SDL_WINDOWPOS_CENTERED.
|
static |
Definition at line 41 of file testjoystick.c.
References joystick, SDL_assert, SDL_JOYSTICK_TYPE_ARCADE_PAD, SDL_JOYSTICK_TYPE_ARCADE_STICK, SDL_JOYSTICK_TYPE_DANCE_PAD, SDL_JOYSTICK_TYPE_DRUM_KIT, SDL_JOYSTICK_TYPE_FLIGHT_STICK, SDL_JOYSTICK_TYPE_GAMECONTROLLER, SDL_JOYSTICK_TYPE_GUITAR, SDL_JOYSTICK_TYPE_THROTTLE, SDL_JOYSTICK_TYPE_WHEEL, SDL_JoystickFromInstanceID, SDL_JoystickGetGUID, SDL_JoystickGetGUIDString, SDL_JoystickGetProduct, SDL_JoystickGetType, SDL_JoystickGetVendor, SDL_JoystickInstanceID, SDL_JoystickName, SDL_JoystickNumAxes, SDL_JoystickNumBalls, SDL_JoystickNumButtons, SDL_JoystickNumHats, and SDL_Log.
Referenced by loop().
Definition at line 38 of file testjoystick.c.
|
static |
Definition at line 37 of file testjoystick.c.
Referenced by IOS_AccelerometerUpdate(), IOS_JoystickClose(), IOS_JoystickHasLED(), IOS_JoystickOpen(), IOS_JoystickRumble(), IOS_JoystickRumbleTriggers(), IOS_JoystickSetLED(), IOS_JoystickSetSensorsEnabled(), IOS_JoystickUpdate(), IOS_MFIJoystickUpdate(), loop(), main(), PrintJoystick(), SDL_GameControllerFromPlayerIndex(), SDL_GameControllerGetNumTouchpadFingers(), SDL_GameControllerGetNumTouchpads(), SDL_GameControllerGetSensorData(), SDL_GameControllerGetTouchpadFinger(), SDL_GameControllerHandleDelayedGuideButton(), SDL_GameControllerHasSensor(), SDL_GameControllerIsSensorEnabled(), SDL_GameControllerSetSensorEnabled(), SDL_HapticOpenFromJoystick(), SDL_JoystickAxesCenteredAtZero(), SDL_JoystickClose(), SDL_JoystickCurrentPowerLevel(), SDL_JoystickFromInstanceID(), SDL_JoystickFromPlayerIndex(), SDL_JoystickGetAttached(), SDL_JoystickGetAxis(), SDL_JoystickGetAxisInitialState(), SDL_JoystickGetBall(), SDL_JoystickGetButton(), SDL_JoystickGetGUID(), SDL_JoystickGetHat(), SDL_JoystickGetPlayerIndex(), SDL_JoystickGetProduct(), SDL_JoystickGetProductVersion(), SDL_JoystickGetSerial(), SDL_JoystickGetType(), SDL_JoystickGetVendor(), SDL_JoystickHasLED(), SDL_JoystickInstanceID(), SDL_JoystickIsHaptic(), SDL_JoystickName(), SDL_JoystickNumAxes(), SDL_JoystickNumBalls(), SDL_JoystickNumButtons(), SDL_JoystickNumHats(), SDL_JoystickOpen(), SDL_JoystickRumble(), SDL_JoystickRumbleTriggers(), SDL_JoystickSetLED(), SDL_JoystickSetPlayerIndex(), SDL_JoystickSetVirtualAxis(), SDL_JoystickSetVirtualButton(), SDL_JoystickSetVirtualHat(), SDL_JoystickUpdate(), SDL_PrivateJoystickAddSensor(), SDL_PrivateJoystickAddTouchpad(), SDL_PrivateJoystickAxis(), SDL_PrivateJoystickBall(), SDL_PrivateJoystickBatteryLevel(), SDL_PrivateJoystickButton(), SDL_PrivateJoystickForceRecentering(), SDL_PrivateJoystickHat(), SDL_PrivateJoystickRemoved(), SDL_PrivateJoystickSensor(), SDL_PrivateJoystickTouchpad(), SDL_PrivateJoystickValid(), and WatchJoystick().
|
static |
Definition at line 36 of file testjoystick.c.
|
static |
Definition at line 35 of file testjoystick.c.