blob: f77c741c7c25947a8889b37acd7c92e5891958a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
--- ois-v1-3.orig/demos/FFConsoleDemo.cpp 2010-03-31 22:38:04.000000000 -0500
+++ ois-v1-3/demos/FFConsoleDemo.cpp 2012-12-24 00:33:49.240616817 -0500
@@ -7,6 +7,7 @@
#include <ios>
#include <sstream>
#include <vector>
+#include <unistd.h>
using namespace std;
--- ois-v1-3.orig/demos/OISConsole.cpp 2010-08-15 17:51:34.000000000 -0500
+++ ois-v1-3/demos/OISConsole.cpp 2012-12-24 00:44:27.697240229 -0500
@@ -12,6 +12,7 @@
#include <iostream>
#include <vector>
#include <sstream>
+#include <unistd.h>
////////////////////////////////////Needed Windows Headers////////////
#if defined OIS_WIN32_PLATFORM
@@ -77,7 +78,7 @@
}
bool keyReleased( const KeyEvent &arg ) {
if( arg.key == KC_ESCAPE || arg.key == KC_Q )
- appRunning = false;
+ appRunning = false;
std::cout << "KeyReleased {" << ((Keyboard*)(arg.device))->getAsString(arg.key) << "}\n";
return true;
}
--- ois-v1-3.orig/src/linux/LinuxJoyStickEvents.cpp 2010-07-25 20:28:41.000000000 -0500
+++ ois-v1-3/src/linux/LinuxJoyStickEvents.cpp 2012-12-24 00:36:18.360998563 -0500
@@ -33,6 +33,7 @@
#include <fcntl.h> //Needed to Open a file descriptor
#include <cassert>
#include <linux/input.h>
+#include <unistd.h>
#include <sstream>
--- ois-v1-3.orig/src/linux/LinuxForceFeedback.cpp 2010-03-31 22:06:55.000000000 -0500
+++ ois-v1-3/src/linux/LinuxForceFeedback.cpp 2012-12-24 00:36:54.023723000 -0500
@@ -26,6 +26,7 @@
#include <cstdlib>
#include <errno.h>
#include <memory.h>
+#include <unistd.h>
using namespace OIS;
|