53#if OO_FOV_INFLIGHT_CONTROL_ENABLED 
   97#if OO_FOV_INFLIGHT_CONTROL_ENABLED 
   98    BUTTON_INC_FIELD_OF_VIEW,
 
   99    BUTTON_DEC_FIELD_OF_VIEW,
 
  119#define MAX_REAL_BUTTONS  64 
  121#define MAX_BUTTONS (MAX_REAL_BUTTONS + 4 * MAX_HATS) 
  122#define STICK_NOFUNCTION -1 
  123#define STICK_AXISUNASSIGNED -10.0 
  125#define STICK_PRECISIONFAC 3 
  126#define STICK_NORMALDIV 32768 
  127#define STICK_PRECISIONDIV (STICK_PRECISIONFAC*STICK_NORMALDIV) 
  130#define STICK_DEADZONE  0.0025 
  132#define STICK_DEADZONE  0.05 
  135#define STICK_MAX_DEADZONE  (STICK_DEADZONE * 2) 
  145#define AXCBTHRESH 20000 
  148#define AXIS_SETTINGS @"JoystickAxes"   
  149#define BUTTON_SETTINGS @"JoystickButs"  
  150#define STICK_ISAXIS @"isAxis"       
  151#define STICK_NUMBER @"stickNum"     
  152#define STICK_AXBUT  @"stickAxBt"    
  153#define STICK_FUNCTION @"stickFunc"  
  154#define STICK_ROLL_AXIS_PROFILE_SETTING @"RollAxisProfile"  
  155#define STICK_PITCH_AXIS_PROFILE_SETTING @"PitchAxisProfile"  
  156#define STICK_YAW_AXIS_PROFILE_SETTING @"YawAxisProfile"  
  159#define ENUMKEY(x) [NSString stringWithFormat: @"%d", x] 
  271+ (id) sharedStickHandler;
 
  272+ (BOOL) setStickHandlerClass:(Class)aClass;
 
  282- (NSPoint) rollPitchAxis;
 
  288- (void) setFunction:(
int)function withDict: (NSDictionary *)stickFn;
 
  289- (void) unsetAxisFunction:(
int)function;
 
  290- (void) unsetButtonFunction:(
int)function;
 
  295- (NSUInteger) joystickCount;
 
  296- (BOOL) isButtonDown:(
int)button stick:(
int)stickNum;
 
  297- (BOOL) getButtonState:(
int)function;
 
  298- (double) getAxisState:(
int)function;
 
  299- (double) getSensitivity;
 
  304- (void) saveProfileForAxis: (
int) axis;
 
  305- (void) loadProfileForAxis: (
int) axis;
 
  309- (const BOOL *) getAllButtonStates;
 
  312- (NSArray *) listSticks;
 
  316- (NSDictionary *) axisFunctions;
 
  317- (NSDictionary *) buttonFunctions;
 
  321- (void)setCallback:(
SEL)selector
 
  323           hardware:(
char)hwflags;
 
  324- (void)clearCallback;
 
  327- (void) setDefaultMapping;
 
  328- (void) clearMappings;
 
  329- (void) clearStickStates;
 
  330- (void) clearStickButtonState: (
int)stickButton;
 
  334- (void) saveStickSettings;
 
  335- (void) loadStickSettings;
 
  339- (NSString *) nameOfJoystick:(NSUInteger)stickNumber;
 
  340- (int16_t) getAxisWithStick:(NSUInteger) stickNum axis:(NSUInteger)axisNum;
 
@ BUTTON_DOCKINGCLEARANCE
 
@ BUTTON_TARGETINCOMINGMISSILE
 
@ BUTTON_ACTIVATEEQUIPMENT
 
@ BUTTON_WEAPONSONLINETOGGLE
 
@ BUTTON_COMPASSMODE_PREV
 
@ BUTTON_PRIMEEQUIPMENT_PREV
 
uint8_t hatstate[MAX_STICKS][MAX_HATS]
 
OOJoystickAxisProfile * roll_profile
 
int8_t axismap[MAX_STICKS][MAX_AXES]
 
OOJoystickAxisProfile * pitch_profile
 
BOOL butstate[BUTTON_end]
 
int8_t buttonmap[MAX_STICKS][MAX_BUTTONS]
 
OOJoystickAxisProfile * yaw_profile
 
BOOL true_butstate[MAX_STICKS][MAX_BUTTONS]