src/sensor/SDL_sensor_c.h
author Ryan C. Gordon <icculus@icculus.org>
Sun, 21 Oct 2018 22:40:17 -0400
changeset 12345 50e1cca28b39
parent 12130 24142c5073a4
child 12366 c46e72bd9950
permissions -rw-r--r--
wasapi/win32: Sort initial device lists by device GUID.

This makes an unchanged set of hardware always report devices in the same
order on each run.
slouken@12130
     1
/*
slouken@12130
     2
  Simple DirectMedia Layer
slouken@12130
     3
  Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org>
slouken@12130
     4
slouken@12130
     5
  This software is provided 'as-is', without any express or implied
slouken@12130
     6
  warranty.  In no event will the authors be held liable for any damages
slouken@12130
     7
  arising from the use of this software.
slouken@12130
     8
slouken@12130
     9
  Permission is granted to anyone to use this software for any purpose,
slouken@12130
    10
  including commercial applications, and to alter it and redistribute it
slouken@12130
    11
  freely, subject to the following restrictions:
slouken@12130
    12
slouken@12130
    13
  1. The origin of this software must not be misrepresented; you must not
slouken@12130
    14
     claim that you wrote the original software. If you use this software
slouken@12130
    15
     in a product, an acknowledgment in the product documentation would be
slouken@12130
    16
     appreciated but is not required.
slouken@12130
    17
  2. Altered source versions must be plainly marked as such, and must not be
slouken@12130
    18
     misrepresented as being the original software.
slouken@12130
    19
  3. This notice may not be removed or altered from any source distribution.
slouken@12130
    20
*/
slouken@12130
    21
#include "SDL_config.h"
slouken@12130
    22
slouken@12130
    23
struct _SDL_SensorDriver;
slouken@12130
    24
slouken@12130
    25
/* Useful functions and variables from SDL_sensor.c */
slouken@12130
    26
#include "SDL_sensor.h"
slouken@12130
    27
slouken@12130
    28
/* Function to get the next available sensor instance ID */
slouken@12130
    29
extern SDL_SensorID SDL_GetNextSensorInstanceID(void);
slouken@12130
    30
slouken@12130
    31
/* Initialization and shutdown functions */
slouken@12130
    32
extern int SDL_SensorInit(void);
slouken@12130
    33
extern void SDL_SensorQuit(void);
slouken@12130
    34
slouken@12130
    35
/* Internal event queueing functions */
slouken@12130
    36
extern int SDL_PrivateSensorUpdate(SDL_Sensor *sensor, float *data, int num_values);
slouken@12130
    37
slouken@12130
    38
/* vi: set ts=4 sw=4 expandtab: */