SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
34
games/oolite/patches/patch-src_Cocoa_JoystickHandler_h
Normal file
34
games/oolite/patches/patch-src_Cocoa_JoystickHandler_h
Normal file
|
@ -0,0 +1,34 @@
|
|||
Index: src/Cocoa/JoystickHandler.h
|
||||
--- src/Cocoa/JoystickHandler.h.orig
|
||||
+++ src/Cocoa/JoystickHandler.h
|
||||
@@ -57,7 +57,7 @@ SOFTWARE.
|
||||
// these are required very frequently (once per frame) so must be light
|
||||
// on CPU cycles (try and avoid too many objc sendmsgs).
|
||||
// Controls that can be an axis
|
||||
-enum {
|
||||
+enum axfn {
|
||||
AXIS_ROLL,
|
||||
AXIS_PITCH,
|
||||
AXIS_YAW,
|
||||
@@ -66,10 +66,10 @@ enum {
|
||||
AXIS_VIEWX,
|
||||
AXIS_VIEWY,
|
||||
AXIS_end
|
||||
-} axfn;
|
||||
+};
|
||||
|
||||
// Controls that can be a button
|
||||
-enum {
|
||||
+enum butfn {
|
||||
BUTTON_INCTHRUST,
|
||||
BUTTON_DECTHRUST,
|
||||
BUTTON_SCANNERZOOM,
|
||||
@@ -102,7 +102,7 @@ enum {
|
||||
BUTTON_VIEWPORT,
|
||||
BUTTON_VIEWSTARBOARD,
|
||||
BUTTON_end
|
||||
-} butfn;
|
||||
+};
|
||||
|
||||
// Stick constants
|
||||
#define MAX_STICKS 4
|
Loading…
Add table
Add a link
Reference in a new issue