SDL
2.0
|
#include "SDL.h"
Go to the source code of this file.
Functions | |
static const char * | GetSensorTypeString (SDL_SensorType type) |
static void | HandleSensorEvent (SDL_SensorEvent *event) |
int | main (int argc, char **argv) |
|
static |
Definition at line 17 of file testsensor.c.
References SDL_SENSOR_ACCEL, SDL_SENSOR_GYRO, SDL_SENSOR_INVALID, SDL_SENSOR_UNKNOWN, and SDL_snprintf.
Referenced by HandleSensorEvent(), and main().
|
static |
Definition at line 37 of file testsensor.c.
References GetSensorTypeString(), SDL_Log, SDL_SENSOR_ACCEL, SDL_SENSOR_GYRO, SDL_SensorFromInstanceID, and SDL_SensorGetType.
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 59 of file testsensor.c.
References done, GetSensorTypeString(), HandleSensorEvent(), i, NULL, SDL_CreateWindow, SDL_FALSE, SDL_GetError, SDL_Init, SDL_INIT_SENSOR, SDL_KEYUP, SDL_Log, SDL_MOUSEBUTTONUP, SDL_NumSensors, SDL_PollEvent, SDL_Quit, SDL_QUIT, SDL_SENSOR_UNKNOWN, SDL_SensorGetDeviceInstanceID, SDL_SensorGetDeviceName, SDL_SensorGetDeviceNonPortableType, SDL_SensorGetDeviceType, SDL_SensorOpen, SDL_SENSORUPDATE, SDL_TRUE, and SDL_WINDOW_FULLSCREEN_DESKTOP.