FreeStick
0.3
Cross Platform Open Sorce Joystick Lib
inc
freestick.h
Go to the documentation of this file.
1
/**************************************************************************
2
Created by Alan Uthoff on 10/8/2013
3
Copyright (C) 2013.
4
5
This Code is free software; you can redistribute it and/or
6
modify it under the terms of the zlib/libpng License as published
7
by the Free Software Foundation; either
8
version 2.1 of the License, or (at your option) any later version.
9
This software is provided 'as-is', without any express or implied warranty.
10
11
In no event will the authors be held liable for any damages arising from the use of this software.
12
13
Permission is granted to anyone to use this software for any purpose,
14
including commercial applications, and to alter it and redistribute
15
it freely, subject to the following restrictions:
16
17
1. The origin of this software must not be misrepresented;
18
you must not claim that you wrote the original software.
19
If you use this software in a product, an acknowledgment
20
in the product documentation would be appreciated but is not required.
21
22
2. Altered source versions must be plainly marked as such,
23
and must not be misrepresented as being the original software.
24
25
3. This notice may not be removed or altered from any source distribution.
26
**************************************************************************/
27
28
#ifndef FREESTICK_H
29
#define FREESTICK_H
30
31
#include "
baseClasses/FSBaseDevice.h
"
32
#include "
baseClasses/FSBaseEvent.h
"
33
#include "
baseClasses/FSBaseJoystickInfo.h
"
//May remove this header
34
#include "
baseClasses/FSBaseManager.h
"
35
36
#include "
Interfaces/IFSJoystickListener.h
"
37
#include "
Interfaces/IFSDevice.h
"
38
#include "
Interfaces/IFSEvent.h
"
39
#include "
Interfaces/IFSJoystickInfo.h
"
//May remove this header
40
41
#include "
USB/common/FSUSBDevice.h
"
42
#include "
USB/common/FSUSBDeviceManager.h
"
43
#include "
USB/common/FSUSBJoystickButton.h
"
44
#include "
USB/common/FSUSBJoystick.h
"
45
#include "
USB/common/FSUSBJoyStickInputElement.h
"
46
47
#include "
common/FSDeviceInputEvent.h
"
48
49
#ifdef __APPLE__
50
#include "
USB/platform/NULL/FSUSBNullJoystickDeviceManager.h
"
51
#include "TargetConditionals.h"
52
#if TARGET_OS_IPHONE && TARGET_IPHONE_SIMULATOR
53
// define something for simulator
54
typedef
freestick::FSUSBNullJoystickDeviceManager
FreeStickDeviceManager
;
55
#elif TARGET_OS_IPHONE || TARGET_OS_TV
56
#include "
USB/platform/iOS/FSMFIJoystickManager.h
"
57
// define something for iphone
58
typedef
freestick::FSMFIJoystickDeviceManager
FreeStickDeviceManager
;
59
#elif TARGET_OS_WATCH
60
typedef
freestick::FSUSBNullJoystickDeviceManager
FreeStickDeviceManager
;
61
#else
62
#define TARGET_OS_OSX 1
63
// define something for OSX
64
#include "
USB/platform/MacOSX/FSMacOSXJoystickDeviceManager.h
"
65
typedef
freestick::FSMacOSXJoystickDeviceManager
FreeStickDeviceManager
;
66
#endif
67
#elif __ANDROID__
68
//define for android
69
#include "
USB/platform/Android/jni/src/FSHIDAndroidJoysickDeviceManager.h
"
70
#include "
USB/platform/Android/jni/src/FSJNI_Wrapper.h
"
71
typedef
freestick::FSHIDAndroidJoysickDeviceManager
FreeStickDeviceManager
;
72
#elif _WIN32
73
// Windows
74
#include "
USB/platform/Windows/FSWindowsJoystickDeviceManager.h
"
75
typedef
freestick::FSWindowsJoystickDeviceManager
FreeStickDeviceManager
;
76
#else
77
#include "
USB/platform/NULL/FSUSBNullJoystickDeviceManager.h
"
78
typedef
freestick::FSUSBNullJoystickDeviceManager
FreeStickDeviceManager
;
79
#endif
80
81
#endif // FREESTICK_H
FSUSBNullJoystickDeviceManager.h
FSBaseEvent.h
FSBaseManager.h
FSUSBDevice.h
freestick::FSWindowsJoystickDeviceManager
Definition:
FSWindowsJoystickDeviceManager.h:47
IFSDevice.h
FSHIDAndroidJoysickDeviceManager.h
FSJNI_Wrapper.h
IFSJoystickListener.h
FSUSBJoyStickInputElement.h
IFSJoystickInfo.h
FSMFIJoystickManager.h
FSUSBJoystickButton.h
IFSEvent.h
freestick::FSMacOSXJoystickDeviceManager
Definition:
FSMacOSXJoystickDeviceManager.h:33
FSDeviceInputEvent.h
freestick::FSHIDAndroidJoysickDeviceManager
Definition:
FSHIDAndroidJoysickDeviceManager.h:35
FSMacOSXJoystickDeviceManager.h
FSWindowsJoystickDeviceManager.h
FSBaseJoystickInfo.h
FreeStickDeviceManager
freestick::FSUSBNullJoystickDeviceManager FreeStickDeviceManager
Definition:
freestick.h:78
freestick::FSMFIJoystickDeviceManager
Definition:
FSMFIJoystickManager.h:35
freestick::FSUSBNullJoystickDeviceManager
Definition:
FSUSBNullJoystickDeviceManager.h:32
FSUSBDeviceManager.h
FSUSBJoystick.h
FSBaseDevice.h
Generated on Mon Mar 16 2020 19:52:26 for FreeStick by
1.8.15