Cargo Features

[dependencies]
objc2-game-controller = { version = "0.2.2", default-features = false, features = ["std", "alloc", "all", "bitflags", "block2", "objc2-app-kit", "GCAxis2DInput", "GCAxisElement", "GCAxisInput", "GCButtonElement", "GCColor", "GCController", "GCControllerAxisInput", "GCControllerButtonInput", "GCControllerDirectionPad", "GCControllerElement", "GCControllerTouchpad", "GCDevice", "GCDeviceCursor", "GCDeviceHaptics", "GCDevicePhysicalInput", "GCDevicePhysicalInputState", "GCDevicePhysicalInputStateDiff", "GCDirectionPadElement", "GCDirectionalGamepad", "GCDualSenseGamepad", "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 = std

The std feature is set by default whenever objc2-game-controller is added without default-features = false somewhere in the dependency tree.

std default = alloc

Currently not possible to turn off, put here for forwards compatibility.

Enables std of optional bitflags, optional block2, objc2, optional objc2-app-kit, and objc2-foundation

alloc std

Enables alloc of optional block2, objc2, optional objc2-app-kit, and objc2-foundation

all = 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
bitflags GCPhysicalInputSource? all?

Enables bitflags, bitflags of objc2-foundation and optional objc2-app-kit

block2 all?

Enables block2, block2 of objc2-foundation and optional objc2-app-kit

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 all?

Enables objc2-app-kit

GCAxis2DInput all?

Enables NSDate and NSSet of objc2-foundation

GCAxisElement all?
GCAxisInput all?

Enables NSDate and NSSet of objc2-foundation

GCButtonElement all?
GCColor all?

Enables NSObject of objc2-foundation

GCController all?

Enables NSArray and NSString of objc2-foundation

GCControllerAxisInput all?
GCControllerButtonInput all?

Affects GCKeyboardInput::GCKeyboardValueChangedHandler

GCControllerDirectionPad all?
GCControllerElement all?

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 all?
GCDevice all?

Enables NSString of objc2-foundation

GCDeviceBattery GCDeviceCursor all?
GCDeviceHaptics all?

Enables NSSet and NSString of objc2-foundation

GCDeviceLight GCDevicePhysicalInput all?
GCDevicePhysicalInputState all?

Enables NSDate and NSString of objc2-foundation

GCDevicePhysicalInputStateDiff all?

Enables NSEnumerator of objc2-foundation

GCDirectionPadElement all?
GCDirectionalGamepad all?

Enables NSString of objc2-foundation

GCDualSenseAdaptiveTrigger GCDualSenseGamepad all?
GCDualShockGamepad all?
GCEventViewController all?

Enables NSBundle, NSCoder, NSObject and NSString of objc2-foundation, NSKeyValueBinding, NSNib, NSResponder, NSStoryboardSegue, NSUserInterfaceItemIdentification and NSViewController of optional objc2-app-kit

GCExtendedGamepad all?
GCExtendedGamepadSnapshot all?

Enables NSData of objc2-foundation

GCExtern GCGamepad all?
GCGamepadSnapshot all?

Enables NSData of objc2-foundation

GCGearShifterElement all?
GCInputNames all?

Enables NSString of objc2-foundation

GCKeyCodes all?

Affects objc2-game-controller::GCKeyCode, GCKeyboardInput::GCKeyboardValueChangedHandler

GCKeyNames GCKeyboard all?

Enables NSString of objc2-foundation

GCKeyboardInput all?
GCLinearInput all?

Enables NSDate and NSSet of objc2-foundation

GCMicroGamepad all?

Enables NSString of objc2-foundation

GCMicroGamepadSnapshot all?

Enables NSData of objc2-foundation

GCMotion all?
GCMouse all?

Enables NSArray and NSString of objc2-foundation

GCMouseInput all?

Enables NSArray of objc2-foundation

GCPhysicalInputElement all?

Enables NSEnumerator, NSSet and NSString of objc2-foundation

GCPhysicalInputProfile all?

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

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

GCPhysicalInputSource all? = bitflags

Enables NSSet and NSString of objc2-foundation

GCPressedStateInput all?

Enables NSDate and NSSet of objc2-foundation

GCProductCategories all?

Enables NSString of objc2-foundation

GCRacingWheel all?

Enables NSError, NSSet and NSString of objc2-foundation

GCRacingWheelInput all?
GCRelativeInput all?

Enables NSDate and NSSet of objc2-foundation

GCSteeringWheelElement GCSwitchElement all?
GCSwitchPositionInput all?

Enables NSDate, NSRange and NSSet of objc2-foundation

GCSyntheticDeviceKeys all?
GCTouchedStateInput all?

Enables NSDate and NSSet of objc2-foundation

GCTypes all?

Enables NSString and NSValue of objc2-foundation

GCXboxGamepad all?