FreeStick  0.3
Cross Platform Open Sorce Joystick Lib
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 
33 #include "baseClasses/FSBaseJoystickInfo.h" //May remove this header
35 
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"
46 
48 
49 #ifdef __APPLE__
51  #include "TargetConditionals.h"
52  #if TARGET_OS_IPHONE && TARGET_IPHONE_SIMULATOR
53  // define something for simulator
55  #elif TARGET_OS_IPHONE || TARGET_OS_TV
57  // define something for iphone
59  #elif TARGET_OS_WATCH
61  #else
62  #define TARGET_OS_OSX 1
63  // define something for OSX
66  #endif
67 #elif __ANDROID__
68  //define for android
72 #elif _WIN32
73  // Windows
76 #else
79 #endif
80 
81 #endif // FREESTICK_H
Definition: FSWindowsJoystickDeviceManager.h:47
Definition: FSMacOSXJoystickDeviceManager.h:33
Definition: FSHIDAndroidJoysickDeviceManager.h:35
freestick::FSUSBNullJoystickDeviceManager FreeStickDeviceManager
Definition: freestick.h:78
Definition: FSMFIJoystickManager.h:35
Definition: FSUSBNullJoystickDeviceManager.h:32