Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
examples
third_party
glfw
src
winmm_joystick.h
Go to the documentation of this file.
1
//========================================================================
2
// GLFW 3.1 WinMM - www.glfw.org
3
//------------------------------------------------------------------------
4
// Copyright (c) 2006-2014 Camilla Berglund <elmindreda@elmindreda.org>
5
//
6
// This software is provided 'as-is', without any express or implied
7
// warranty. In no event will the authors be held liable for any damages
8
// arising from the use of this software.
9
//
10
// Permission is granted to anyone to use this software for any purpose,
11
// including commercial applications, and to alter it and redistribute it
12
// freely, subject to the following restrictions:
13
//
14
// 1. The origin of this software must not be misrepresented; you must not
15
// claim that you wrote the original software. If you use this software
16
// in a product, an acknowledgment in the product documentation would
17
// be appreciated but is not required.
18
//
19
// 2. Altered source versions must be plainly marked as such, and must not
20
// be misrepresented as being the original software.
21
//
22
// 3. This notice may not be removed or altered from any source
23
// distribution.
24
//
25
//========================================================================
26
27
#ifndef _glfw3_winmm_joystick_h_
28
#define _glfw3_winmm_joystick_h_
29
30
#define _GLFW_PLATFORM_LIBRARY_JOYSTICK_STATE \
31
_GLFWjoystickWinMM winmm_js[GLFW_JOYSTICK_LAST + 1]
32
33
34
// WinMM-specific per-joystick data
35
//
36
typedef
struct
_GLFWjoystickWinMM
37
{
38
float
axes
[6];
39
unsigned
char
buttons
[36];
// 32 buttons plus one hat
40
char
*
name
;
41
}
_GLFWjoystickWinMM
;
42
43
44
void
_glfwInitJoysticks
(
void
);
45
void
_glfwTerminateJoysticks
(
void
);
46
47
#endif // _glfw3_winmm_joystick_h_
_GLFWjoystickWinMM
struct _GLFWjoystickWinMM _GLFWjoystickWinMM
_GLFWjoystickWinMM
Definition:
winmm_joystick.h:36
_GLFWjoystickWinMM::axes
float axes[6]
Definition:
winmm_joystick.h:38
_glfwInitJoysticks
void _glfwInitJoysticks(void)
Definition:
winmm_joystick.c:55
_GLFWjoystickWinMM::name
char * name
Definition:
winmm_joystick.h:40
_glfwTerminateJoysticks
void _glfwTerminateJoysticks(void)
Definition:
winmm_joystick.c:61
_GLFWjoystickWinMM::buttons
unsigned char buttons[36]
Definition:
winmm_joystick.h:39
librealsense
Author(s): Sergey Dorodnicov
, Mark Horn
, Reagan Lopez
autogenerated on Fri Mar 13 2020 03:16:18