public class GCExtendedGamepad extends GCPhysicalInputProfile
| Modifier and Type | Class and Description |
|---|---|
static interface |
GCExtendedGamepad.Block_setValueChangedHandler |
static interface |
GCExtendedGamepad.Block_valueChangedHandler_ret |
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
GCExtendedGamepad(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
static GCExtendedGamepad |
alloc() |
static GCExtendedGamepad |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
GCControllerButtonInput |
buttonA()
All face buttons are required to be analog in the Extended profile.
|
GCControllerButtonInput |
buttonB() |
GCControllerButtonInput |
buttonHome()
Button home is a special menu button.
|
GCControllerButtonInput |
buttonMenu()
Button menu is the primary menu button, and should be used to enter the main menu and pause the game.
|
GCControllerButtonInput |
buttonOptions()
Button options is the secondary menu button.
|
GCControllerButtonInput |
buttonX() |
GCControllerButtonInput |
buttonY() |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
GCController |
controller() |
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
GCControllerDirectionPad |
dpad()
Required to be analog in the Extended profile.
|
static long |
hash_static() |
GCExtendedGamepad |
init() |
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
GCControllerButtonInput |
leftShoulder()
Shoulder buttons are required to be analog inputs.
|
GCControllerDirectionPad |
leftThumbstick()
A thumbstick is a 2-axis control that is physically required to be analog.
|
GCControllerButtonInput |
leftThumbstickButton()
A thumbstick may also have a clickable component, which is treated as a non-analog button.
|
GCControllerButtonInput |
leftTrigger()
Triggers are required to be analog inputs.
|
static GCExtendedGamepad |
new_objc() |
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
GCControllerButtonInput |
rightShoulder()
Shoulder buttons are required to be analog inputs.
|
GCControllerDirectionPad |
rightThumbstick()
A thumbstick is a 2-axis control that is physically required to be analog.
|
GCControllerButtonInput |
rightThumbstickButton() |
GCControllerButtonInput |
rightTrigger() |
GCExtendedGamepadSnapshot |
saveSnapshot()
Polls the state vector of the controller and saves it to a snapshot.
|
void |
setStateFromExtendedGamepad(GCExtendedGamepad extendedGamepad)
Sets the state vector of the extended gamepad to a copy of the input extended gamepad's state vector.
|
void |
setValueChangedHandler(GCExtendedGamepad.Block_setValueChangedHandler value) |
static void |
setVersion_static(long aVersion) |
static org.moe.natj.objc.Class |
superclass_static() |
GCExtendedGamepad.Block_valueChangedHandler_ret |
valueChangedHandler() |
static long |
version_static() |
allAxes, allButtons, allDpads, allElements, allTouchpads, axes, buttons, capture, device, dpads, elements, hasRemappedElements, lastEventTimestamp, mappedElementAliasForPhysicalInputName, mappedPhysicalInputNamesForElementAlias, objectForKeyedSubscript, setStateFromPhysicalInput, touchpadsaccessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static GCExtendedGamepad alloc()
public static GCExtendedGamepad allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static GCExtendedGamepad new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static long version_static()
public GCControllerButtonInput buttonA()
Y / \ X B \ / A
public GCControllerButtonInput buttonB()
public GCControllerButtonInput buttonX()
public GCControllerButtonInput buttonY()
public GCController controller()
public GCControllerDirectionPad dpad()
public GCExtendedGamepad init()
init in class GCPhysicalInputProfilepublic GCControllerButtonInput leftShoulder()
public GCControllerDirectionPad leftThumbstick()
public GCControllerButtonInput leftTrigger()
public GCControllerButtonInput rightShoulder()
public GCControllerDirectionPad rightThumbstick()
public GCControllerButtonInput rightTrigger()
public GCExtendedGamepadSnapshot saveSnapshot()
If your application is heavily multithreaded this may also be useful to guarantee atomicity of input handling as a snapshot will not change based on user input once it is taken.
public void setValueChangedHandler(GCExtendedGamepad.Block_setValueChangedHandler value)
public GCExtendedGamepad.Block_valueChangedHandler_ret valueChangedHandler()
public GCControllerButtonInput buttonMenu()
public GCControllerButtonInput buttonOptions()
public GCControllerButtonInput leftThumbstickButton()
public GCControllerButtonInput rightThumbstickButton()
public void setStateFromExtendedGamepad(GCExtendedGamepad extendedGamepad)
[@note] If the controller's snapshot flag is set to NO, this method has no effect.
GCController.snapshotpublic GCControllerButtonInput buttonHome()