Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fengzch-das
OIS
Commits
24236447
Commit
24236447
authored
Sep 17, 2015
by
TheOnlyJoey
Browse files
Merge pull request #5 from hymerman/tidying
General tidy-up
parents
c546989f
ed6e1ba6
Changes
121
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
1680 additions
and
1660 deletions
+1680
-1660
includes/OISPrereqs.h
includes/OISPrereqs.h
+247
-227
includes/SDL/SDLInputManager.h
includes/SDL/SDLInputManager.h
+73
-73
includes/SDL/SDLKeyboard.h
includes/SDL/SDLKeyboard.h
+79
-79
includes/SDL/SDLMouse.h
includes/SDL/SDLMouse.h
+59
-59
includes/SDL/SDLPrereqs.h
includes/SDL/SDLPrereqs.h
+38
-38
includes/iphone/iPhoneAccelerometer.h
includes/iphone/iPhoneAccelerometer.h
+50
-50
includes/iphone/iPhoneHelpers.h
includes/iphone/iPhoneHelpers.h
+56
-56
includes/iphone/iPhoneInputManager.h
includes/iphone/iPhoneInputManager.h
+110
-110
includes/iphone/iPhoneMultiTouch.h
includes/iphone/iPhoneMultiTouch.h
+64
-64
includes/iphone/iPhonePrereqs.h
includes/iphone/iPhonePrereqs.h
+56
-56
includes/linux/EventHelpers.h
includes/linux/EventHelpers.h
+49
-49
includes/linux/LinuxForceFeedback.h
includes/linux/LinuxForceFeedback.h
+85
-85
includes/linux/LinuxInputManager.h
includes/linux/LinuxInputManager.h
+105
-105
includes/linux/LinuxJoyStickEvents.h
includes/linux/LinuxJoyStickEvents.h
+72
-72
includes/linux/LinuxKeyboard.h
includes/linux/LinuxKeyboard.h
+82
-82
includes/linux/LinuxMouse.h
includes/linux/LinuxMouse.h
+75
-75
includes/linux/LinuxPrereqs.h
includes/linux/LinuxPrereqs.h
+82
-82
includes/mac/MacHIDManager.h
includes/mac/MacHIDManager.h
+103
-103
includes/mac/MacHelpers.h
includes/mac/MacHelpers.h
+94
-94
includes/mac/MacInputManager.h
includes/mac/MacInputManager.h
+101
-101
No files found.
includes/OISPrereqs.h
View file @
24236447
...
...
@@ -99,6 +99,26 @@ restrictions:
# define OIS_ARCH_32
#endif
//-------------- Various helper preprocessor definitions ---------------------//
#ifdef OIS_MSVC_COMPILER
# define OIS_INLINE_PRAGMA(x) __pragma(x) // x is intentionally not wrapped; __pragma rejects expressions beginning with '('.
#else
# define OIS_INLINE_PRAGMA(x)
#endif
#define OIS_MACRO_BEGIN do {
#define OIS_MACRO_END \
} OIS_INLINE_PRAGMA(warning(push)) OIS_INLINE_PRAGMA(warning(disable:4127)) while (0) OIS_INLINE_PRAGMA(warning(pop))
// This creative trickery taken from this StackOverflow answer:
// http://stackoverflow.com/questions/4030959/will-a-variablename-c-statement-be-a-no-op-at-all-times/4030983#4030983
#define OIS_UNUSED(x)\
OIS_MACRO_BEGIN\
((void)(true ? 0 : ((x), void(), 0)));\
OIS_MACRO_END
//-------------- Common Classes, Enums, and Typdef's -------------------------//
#define OIS_VERSION_MAJOR 1
#define OIS_VERSION_MINOR 4
...
...
@@ -167,7 +187,7 @@ namespace OIS
{
public:
Component
()
:
cType
(
OIS_Unknown
)
{};
Component
(
ComponentType
type
)
:
cType
(
type
)
{};
explicit
Component
(
ComponentType
type
)
:
cType
(
type
)
{};
//! Indicates what type of coponent this is
ComponentType
cType
;
};
...
...
@@ -177,7 +197,7 @@ namespace OIS
{
public:
Button
()
:
Component
(
OIS_Button
),
pushed
(
false
)
{}
Button
(
bool
bPushed
)
:
Component
(
OIS_Button
),
pushed
(
bPushed
)
{}
explicit
Button
(
bool
bPushed
)
:
Component
(
OIS_Button
),
pushed
(
bPushed
)
{}
//! true if pushed, false otherwise
bool
pushed
;
};
...
...
includes/SDL/SDLInputManager.h
View file @
24236447
includes/SDL/SDLKeyboard.h
View file @
24236447
includes/SDL/SDLMouse.h
View file @
24236447
includes/SDL/SDLPrereqs.h
View file @
24236447
includes/iphone/iPhoneAccelerometer.h
View file @
24236447
includes/iphone/iPhoneHelpers.h
View file @
24236447
includes/iphone/iPhoneInputManager.h
View file @
24236447
includes/iphone/iPhoneMultiTouch.h
View file @
24236447
includes/iphone/iPhonePrereqs.h
View file @
24236447
includes/linux/EventHelpers.h
View file @
24236447
includes/linux/LinuxForceFeedback.h
View file @
24236447
includes/linux/LinuxInputManager.h
View file @
24236447
includes/linux/LinuxJoyStickEvents.h
View file @
24236447
includes/linux/LinuxKeyboard.h
View file @
24236447
includes/linux/LinuxMouse.h
View file @
24236447
includes/linux/LinuxPrereqs.h
View file @
24236447
includes/mac/MacHIDManager.h
View file @
24236447
includes/mac/MacHelpers.h
View file @
24236447
includes/mac/MacInputManager.h
View file @
24236447
Prev
1
2
3
4
5
6
7
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment