Classes | Macros | Typedefs | Functions | Variables
win32_joystick.c File Reference
#include "internal.h"
#include <stdio.h>
#include <math.h>
Include dependency graph for win32_joystick.c:

Go to the source code of this file.

Classes

struct  _GLFWobjenumWin32
 

Macros

#define _GLFW_TYPE_AXIS   0
 
#define _GLFW_TYPE_BUTTON   2
 
#define _GLFW_TYPE_POV   3
 
#define _GLFW_TYPE_SLIDER   1
 
#define GUID_POV   _glfw_GUID_POV
 
#define GUID_RxAxis   _glfw_GUID_RxAxis
 
#define GUID_RyAxis   _glfw_GUID_RyAxis
 
#define GUID_RzAxis   _glfw_GUID_RzAxis
 
#define GUID_Slider   _glfw_GUID_Slider
 
#define GUID_XAxis   _glfw_GUID_XAxis
 
#define GUID_YAxis   _glfw_GUID_YAxis
 
#define GUID_ZAxis   _glfw_GUID_ZAxis
 
#define IID_IDirectInput8W   _glfw_IID_IDirectInput8W
 

Typedefs

typedef struct _GLFWobjenumWin32 _GLFWobjenumWin32
 

Functions

void _glfwDetectJoystickConnectionWin32 (void)
 
void _glfwDetectJoystickDisconnectionWin32 (void)
 
void _glfwInitJoysticksWin32 (void)
 
int _glfwPlatformPollJoystick (_GLFWjoystick *js, int mode)
 
void _glfwPlatformUpdateGamepadGUID (char *guid)
 
void _glfwTerminateJoysticksWin32 (void)
 
static void closeJoystick (_GLFWjoystick *js)
 
static int compareJoystickObjects (const void *first, const void *second)
 
static BOOL CALLBACK deviceCallback (const DIDEVICEINSTANCE *di, void *user)
 
static BOOL CALLBACK deviceObjectCallback (const DIDEVICEOBJECTINSTANCEW *doi, void *user)
 
static const char * getDeviceDescription (const XINPUT_CAPABILITIES *xic)
 
static GLFWbool supportsXInput (const GUID *guid)
 

Variables

static const GUID _glfw_GUID_POV
 
static const GUID _glfw_GUID_RxAxis
 
static const GUID _glfw_GUID_RyAxis
 
static const GUID _glfw_GUID_RzAxis
 
static const GUID _glfw_GUID_Slider
 
static const GUID _glfw_GUID_XAxis
 
static const GUID _glfw_GUID_YAxis
 
static const GUID _glfw_GUID_ZAxis
 
static const GUID _glfw_IID_IDirectInput8W
 
static const DIDATAFORMAT _glfwDataFormat
 
static DIOBJECTDATAFORMAT _glfwObjectDataFormats []
 

Macro Definition Documentation

#define _GLFW_TYPE_AXIS   0

Definition at line 33 of file win32_joystick.c.

#define _GLFW_TYPE_BUTTON   2

Definition at line 35 of file win32_joystick.c.

#define _GLFW_TYPE_POV   3

Definition at line 36 of file win32_joystick.c.

#define _GLFW_TYPE_SLIDER   1

Definition at line 34 of file win32_joystick.c.

#define GUID_POV   _glfw_GUID_POV

Definition at line 80 of file win32_joystick.c.

#define GUID_RxAxis   _glfw_GUID_RxAxis

Definition at line 76 of file win32_joystick.c.

#define GUID_RyAxis   _glfw_GUID_RyAxis

Definition at line 77 of file win32_joystick.c.

#define GUID_RzAxis   _glfw_GUID_RzAxis

Definition at line 78 of file win32_joystick.c.

#define GUID_Slider   _glfw_GUID_Slider

Definition at line 79 of file win32_joystick.c.

#define GUID_XAxis   _glfw_GUID_XAxis

Definition at line 73 of file win32_joystick.c.

#define GUID_YAxis   _glfw_GUID_YAxis

Definition at line 74 of file win32_joystick.c.

#define GUID_ZAxis   _glfw_GUID_ZAxis

Definition at line 75 of file win32_joystick.c.

#define IID_IDirectInput8W   _glfw_IID_IDirectInput8W

Definition at line 72 of file win32_joystick.c.

Typedef Documentation

Function Documentation

void _glfwDetectJoystickConnectionWin32 ( void  )

Definition at line 525 of file win32_joystick.c.

void _glfwDetectJoystickDisconnectionWin32 ( void  )

Definition at line 585 of file win32_joystick.c.

void _glfwInitJoysticksWin32 ( void  )

Definition at line 492 of file win32_joystick.c.

int _glfwPlatformPollJoystick ( _GLFWjoystick js,
int  mode 
)

Definition at line 602 of file win32_joystick.c.

void _glfwPlatformUpdateGamepadGUID ( char *  guid)

Definition at line 741 of file win32_joystick.c.

void _glfwTerminateJoysticksWin32 ( void  )

Definition at line 512 of file win32_joystick.c.

static void closeJoystick ( _GLFWjoystick js)
static

Definition at line 255 of file win32_joystick.c.

static int compareJoystickObjects ( const void first,
const void second 
)
static

Definition at line 177 of file win32_joystick.c.

static BOOL CALLBACK deviceCallback ( const DIDEVICEINSTANCE *  di,
void user 
)
static

Definition at line 342 of file win32_joystick.c.

static BOOL CALLBACK deviceObjectCallback ( const DIDEVICEOBJECTINSTANCEW doi,
void user 
)
static

Definition at line 270 of file win32_joystick.c.

static const char* getDeviceDescription ( const XINPUT_CAPABILITIES xic)
static

Definition at line 147 of file win32_joystick.c.

static GLFWbool supportsXInput ( const GUID *  guid)
static

Definition at line 191 of file win32_joystick.c.

Variable Documentation

const GUID _glfw_GUID_POV
static
Initial value:
=
{0xa36d02f2,0xc9f3,0x11cf,{0xbf,0xc7,0x44,0x45,0x53,0x54,0x00,0x00}}

Definition at line 69 of file win32_joystick.c.

const GUID _glfw_GUID_RxAxis
static
Initial value:
=
{0xa36d02f4,0xc9f3,0x11cf,{0xbf,0xc7,0x44,0x45,0x53,0x54,0x00,0x00}}

Definition at line 61 of file win32_joystick.c.

const GUID _glfw_GUID_RyAxis
static
Initial value:
=
{0xa36d02f5,0xc9f3,0x11cf,{0xbf,0xc7,0x44,0x45,0x53,0x54,0x00,0x00}}

Definition at line 63 of file win32_joystick.c.

const GUID _glfw_GUID_RzAxis
static
Initial value:
=
{0xa36d02e3,0xc9f3,0x11cf,{0xbf,0xc7,0x44,0x45,0x53,0x54,0x00,0x00}}

Definition at line 65 of file win32_joystick.c.

const GUID _glfw_GUID_Slider
static
Initial value:
=
{0xa36d02e4,0xc9f3,0x11cf,{0xbf,0xc7,0x44,0x45,0x53,0x54,0x00,0x00}}

Definition at line 67 of file win32_joystick.c.

const GUID _glfw_GUID_XAxis
static
Initial value:
=
{0xa36d02e0,0xc9f3,0x11cf,{0xbf,0xc7,0x44,0x45,0x53,0x54,0x00,0x00}}

Definition at line 55 of file win32_joystick.c.

const GUID _glfw_GUID_YAxis
static
Initial value:
=
{0xa36d02e1,0xc9f3,0x11cf,{0xbf,0xc7,0x44,0x45,0x53,0x54,0x00,0x00}}

Definition at line 57 of file win32_joystick.c.

const GUID _glfw_GUID_ZAxis
static
Initial value:
=
{0xa36d02e2,0xc9f3,0x11cf,{0xbf,0xc7,0x44,0x45,0x53,0x54,0x00,0x00}}

Definition at line 59 of file win32_joystick.c.

const GUID _glfw_IID_IDirectInput8W
static
Initial value:
=
{0xbf798031,0x483a,0x4da2,{0xaa,0x99,0x5d,0x64,0xed,0x36,0x97,0x00}}

Definition at line 53 of file win32_joystick.c.

const DIDATAFORMAT _glfwDataFormat
static
Initial value:
=
{
sizeof(DIDATAFORMAT),
sizeof(DIJOYSTATE),
}
#define DIDFT_ABSAXIS
Definition: dinput.h:672
struct DIJOYSTATE DIJOYSTATE
struct _DIDATAFORMAT DIDATAFORMAT
static DIOBJECTDATAFORMAT _glfwObjectDataFormats[]
struct _DIOBJECTDATAFORMAT DIOBJECTDATAFORMAT

Definition at line 135 of file win32_joystick.c.

DIOBJECTDATAFORMAT _glfwObjectDataFormats[]
static

Definition at line 85 of file win32_joystick.c.



librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:31