Skip to content

Instantly share code, notes, and snippets.

@tomgco
Created August 27, 2011 21:37
Show Gist options
  • Save tomgco/1175890 to your computer and use it in GitHub Desktop.
Save tomgco/1175890 to your computer and use it in GitHub Desktop.
Xbox Controller Methods in My ArduinoCopter Project.
- (void) RCTriggerRT:(DDHidJoystick *)joystick valueChanged:(NSNumber *)value {
// To use for Throttle;
}
- (void) RCRightJoystickX:(DDHidJoystick *)joystick valueChanged:(NSNumber *)value {
// Trim
}
- (void) RCRightJoystickY:(DDHidJoystick *)joystick valueChanged:(NSNumber *)value {
// Pitch
}
- (void) RCButtonLB:(DDHidJoystick *)joystick state:(BOOL)pressed {
// Trim Left
}
- (void) RCButtonRB:(DDHidJoystick *)joystick state:(BOOL)pressed {
// Trim Right
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment