Cargo Features

[dependencies]
objc2-game-controller = { version = "0.3.0", default-features = false, features = ["std", "alloc", "bitflags", "block2", "objc2-app-kit", "objc2-core-foundation", "GCAxis2DInput", "GCAxisElement", "GCAxisInput", "GCButtonElement", "GCColor", "GCController", "GCControllerAxisInput", "GCControllerButtonInput", "GCControllerDirectionPad", "GCControllerElement", "GCControllerTouchpad", "GCDevice", "GCDeviceCursor", "GCDeviceHaptics", "GCDevicePhysicalInput", "GCDevicePhysicalInputState", "GCDevicePhysicalInputStateDiff", "GCDirectionPadElement", "GCDirectionalGamepad", "GCDualSenseAdaptiveTrigger", "GCDualShockGamepad", "GCEventViewController", "GCExtendedGamepad", "GCExtendedGamepadSnapshot", "GCGamepad", "GCGamepadSnapshot", "GCGearShifterElement", "GCInputNames", "GCKeyCodes", "GCKeyboard", "GCKeyboardInput", "GCLinearInput", "GCMicroGamepad", "GCMicroGamepadSnapshot", "GCMotion", "GCMouse", "GCMouseInput", "GCPhysicalInputElement", "GCPhysicalInputProfile", "GCPhysicalInputSource", "GCPressedStateInput", "GCProductCategories", "GCRacingWheel", "GCRacingWheelInput", "GCRelativeInput", "GCSwitchElement", "GCSwitchPositionInput", "GCSyntheticDeviceKeys", "GCTouchedStateInput", "GCTypes", "GCXboxGamepad"] }
default = GCAxis2DInput, GCAxisElement, GCAxisInput, GCButtonElement, GCColor, GCController, GCControllerAxisInput, GCControllerButtonInput, GCControllerDirectionPad, GCControllerElement, GCControllerInput, GCControllerTouchpad, GCDevice, GCDeviceBattery, GCDeviceCursor, GCDeviceHaptics, GCDeviceLight, GCDevicePhysicalInput, GCDevicePhysicalInputState, GCDevicePhysicalInputStateDiff, GCDirectionPadElement, GCDirectionalGamepad, GCDualSenseAdaptiveTrigger, GCDualSenseGamepad, GCDualShockGamepad, GCEventViewController, GCExtendedGamepad, GCExtendedGamepadSnapshot, GCExtern, GCGamepad, GCGamepadSnapshot, GCGearShifterElement, GCInputNames, GCKeyCodes, GCKeyNames, GCKeyboard, GCKeyboardInput, GCLinearInput, GCMicroGamepad, GCMicroGamepadSnapshot, GCMotion, GCMouse, GCMouseInput, GCPhysicalInputElement, GCPhysicalInputProfile, GCPhysicalInputSource, GCPressedStateInput, GCProductCategories, GCRacingWheel, GCRacingWheelInput, GCRelativeInput, GCSteeringWheelElement, GCSwitchElement, GCSwitchPositionInput, GCSyntheticDeviceKeys, GCTouchedStateInput, GCTypes, GCXboxGamepad, bitflags, block2, objc2-app-kit, objc2-core-foundation, std

These default features are set whenever objc2-game-controller is added without default-features = false somewhere in the dependency tree.

std default = alloc
alloc std
bitflags default GCPhysicalInputSource

Enables bitflags

block2 default

Enables block2

Affects GCMotion::GCMotionValueChangedHandler, GCControllerAxisInput::GCControllerAxisValueChangedHandler, GCControllerButtonInput::GCControllerButtonValueChangedHandler, GCControllerButtonInput::GCControllerButtonTouchedChangedHandler, GCControllerDirectionPad::GCControllerDirectionPadValueChangedHandler, GCControllerTouchpad::GCControllerTouchpadHandler, GCMouseInput::GCMouseMoved, GCExtendedGamepad::GCExtendedGamepadValueChangedHandler, GCGamepad::GCGamepadValueChangedHandler, GCMicroGamepad::GCMicroGamepadValueChangedHandler, GCKeyboardInput::GCKeyboardValueChangedHandler

objc2-app-kit default

Enables objc2-app-kit

objc2-core-foundation default

Enables objc2-core-foundation

Affects GCKeyCodes::GCKeyCode, GCKeyCodes::GCKeyCodeKeyA, GCKeyCodes::GCKeyCodeKeyB, GCKeyCodes::GCKeyCodeKeyC, GCKeyCodes::GCKeyCodeKeyD, GCKeyCodes::GCKeyCodeKeyE, GCKeyCodes::GCKeyCodeKeyF, GCKeyboardInput::GCKeyboardValueChangedHandler

GCAxis2DInput default

Enables NSDate and NSSet of objc2-foundation

GCAxisElement default
GCAxisInput default

Enables NSDate and NSSet of objc2-foundation

GCButtonElement default
GCColor default

Enables NSObject of objc2-foundation

GCController default

Enables NSArray and NSString of objc2-foundation

GCControllerAxisInput default
GCControllerButtonInput default

Affects GCKeyboardInput::GCKeyboardValueChangedHandler

GCControllerDirectionPad default
GCControllerElement default

Enables NSSet and NSString of objc2-foundation

Affects GCControllerAxisInput::GCControllerAxisValueChangedHandler, GCControllerButtonInput::GCControllerButtonValueChangedHandler, GCControllerButtonInput::GCControllerButtonTouchedChangedHandler, GCControllerDirectionPad::GCControllerDirectionPadValueChangedHandler, GCControllerTouchpad::GCControllerTouchpadHandler, GCExtendedGamepad::GCExtendedGamepadValueChangedHandler, GCGamepad::GCGamepadValueChangedHandler, GCMicroGamepad::GCMicroGamepadValueChangedHandler, GCKeyboardInput::GCKeyboardValueChangedHandler

GCControllerInput GCControllerTouchpad default
GCDevice default

Enables NSString of objc2-foundation

GCDeviceBattery GCDeviceCursor default
GCDeviceHaptics default

Enables NSSet and NSString of objc2-foundation

GCDeviceLight GCDevicePhysicalInput default
GCDevicePhysicalInputState default

Enables NSDate and NSString of objc2-foundation

GCDevicePhysicalInputStateDiff default

Enables NSEnumerator of objc2-foundation

GCDirectionPadElement default
GCDirectionalGamepad default

Enables NSString of objc2-foundation

GCDualSenseAdaptiveTrigger default
GCDualSenseGamepad GCDualShockGamepad default
GCEventViewController default

Enables NSBundle, NSCoder and NSObject of objc2-foundation

GCExtendedGamepad default
GCExtendedGamepadSnapshot default

Enables NSData of objc2-foundation

GCExtern GCGamepad default
GCGamepadSnapshot default

Enables NSData of objc2-foundation

GCGearShifterElement default
GCInputNames default

Enables NSString of objc2-foundation

GCKeyCodes default

Affects GCKeyboardInput::GCKeyboardValueChangedHandler

GCKeyNames GCKeyboard default

Enables NSString of objc2-foundation

GCKeyboardInput default
GCLinearInput default

Enables NSDate and NSSet of objc2-foundation

GCMicroGamepad default

Enables NSString of objc2-foundation

GCMicroGamepadSnapshot default

Enables NSData of objc2-foundation

GCMotion default
GCMouse default

Enables NSArray and NSString of objc2-foundation

GCMouseInput default

Enables NSArray of objc2-foundation

GCPhysicalInputElement default

Enables NSEnumerator, NSSet and NSString of objc2-foundation

GCPhysicalInputProfile default

Enables NSDate, NSDictionary, NSSet and NSString of objc2-foundation

Affects GCMouseInput::GCMouseMoved, GCExtendedGamepad::GCExtendedGamepadValueChangedHandler, GCGamepad::GCGamepadValueChangedHandler, GCMicroGamepad::GCMicroGamepadValueChangedHandler, GCKeyboardInput::GCKeyboardValueChangedHandler

GCPhysicalInputSource default = bitflags

Enables NSSet and NSString of objc2-foundation

GCPressedStateInput default

Enables NSDate and NSSet of objc2-foundation

GCProductCategories default

Enables NSString of objc2-foundation

GCRacingWheel default

Enables NSError, NSSet and NSString of objc2-foundation

GCRacingWheelInput default
GCRelativeInput default

Enables NSDate and NSSet of objc2-foundation

GCSteeringWheelElement GCSwitchElement default
GCSwitchPositionInput default

Enables NSDate, NSRange and NSSet of objc2-foundation

GCSyntheticDeviceKeys default
GCTouchedStateInput default

Enables NSDate and NSSet of objc2-foundation

GCTypes default

Enables NSString and NSValue of objc2-foundation

GCXboxGamepad default