Raised joystick limits.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1712 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
parent
fcc47dace6
commit
369f588d08
@ -1030,7 +1030,7 @@
|
||||
083325DC09DDBCDE00F5B8E4 /* OOColor.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OOColor.m; sourceTree = "<group>"; };
|
||||
083DB4D30A70E51E00B419B2 /* OOBrain.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OOBrain.h; sourceTree = "<group>"; };
|
||||
083DB4D40A70E51E00B419B2 /* OOBrain.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OOBrain.m; sourceTree = "<group>"; };
|
||||
0865432206B8447D000CA0AB /* OoliteDev.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = OoliteDev.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
0865432206B8447D000CA0AB /* Oolite.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Oolite.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
0878FD2F086EF845004CB752 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Carbon.framework; path = /System/Library/Frameworks/Carbon.framework; sourceTree = "<absolute>"; };
|
||||
1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = "<absolute>"; };
|
||||
1A020E0A0D020AFB00C3F51E /* changedScriptHandlers.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist; path = changedScriptHandlers.plist; sourceTree = "<group>"; };
|
||||
@ -1707,7 +1707,7 @@
|
||||
19C28FACFE9D520D11CA2CBB /* Products */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
0865432206B8447D000CA0AB /* OoliteDev.app */,
|
||||
0865432206B8447D000CA0AB /* Oolite.app */,
|
||||
1A71E6F30BCE340C00CD5C13 /* libpng.a */,
|
||||
);
|
||||
name = Products;
|
||||
@ -2943,7 +2943,7 @@
|
||||
name = Oolite;
|
||||
productInstallPath = "$(HOME)/Applications";
|
||||
productName = Oolite;
|
||||
productReference = 0865432206B8447D000CA0AB /* OoliteDev.app */;
|
||||
productReference = 0865432206B8447D000CA0AB /* Oolite.app */;
|
||||
productType = "com.apple.product-type.application";
|
||||
};
|
||||
1A71E6F20BCE340C00CD5C13 /* libpng-custom */ = {
|
||||
|
@ -102,9 +102,9 @@ enum {
|
||||
} butfn;
|
||||
|
||||
// Stick constants
|
||||
#define MAX_STICKS 2
|
||||
#define MAX_AXES 10
|
||||
#define MAX_BUTTONS 20
|
||||
#define MAX_STICKS 4
|
||||
#define MAX_AXES 16
|
||||
#define MAX_BUTTONS 64
|
||||
#define STICK_NOFUNCTION -1
|
||||
#define STICK_AXISUNASSIGNED -10.0
|
||||
#define STICK_PRECISIONDIV 98304 // 3 times more precise
|
||||
|
@ -83,8 +83,8 @@ enum {
|
||||
|
||||
// Stick constants
|
||||
#define MAX_STICKS 2
|
||||
#define MAX_AXES 10
|
||||
#define MAX_BUTTONS 20
|
||||
#define MAX_AXES 16
|
||||
#define MAX_BUTTONS 64
|
||||
#define STICK_NOFUNCTION -1
|
||||
#define STICK_AXISUNASSIGNED -10.0
|
||||
#define STICK_PRECISIONDIV 98304 // 3 times more precise
|
||||
@ -119,8 +119,8 @@ enum {
|
||||
@protected
|
||||
|
||||
// Axis/button mapping arrays
|
||||
int axismap[MAX_STICKS][MAX_AXES];
|
||||
int buttonmap[MAX_STICKS][MAX_BUTTONS];
|
||||
int8_t axismap[MAX_STICKS][MAX_AXES];
|
||||
int8_t buttonmap[MAX_STICKS][MAX_BUTTONS];
|
||||
double axstate[AXIS_end];
|
||||
BOOL butstate[BUTTON_end];
|
||||
SDL_Joystick *stick[MAX_STICKS];
|
||||
|
Loading…
x
Reference in New Issue
Block a user