Package apple.gamecontroller
Class GCControllerElement
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.gamecontroller.GCControllerElement
-
- All Implemented Interfaces:
NSObject
- Direct Known Subclasses:
GCControllerAxisInput,GCControllerButtonInput,GCControllerDirectionPad,GCControllerTouchpad
public class GCControllerElement extends NSObject
Every controller element knows which collection it belongs to and whether its input value is analog or digital.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGCControllerElement(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()NSSet<java.lang.String>aliases()A set of aliases that can be used to access this element with keyed subscript notation.static GCControllerElementalloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(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.ClassclassForKeyedUnarchiver()GCControllerElementcollection()Each element can be part of a wider collection of inputs that map to a single logical element.static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()static longhash_static()GCControllerElementinit()static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)booleanisAnalog()Check if the element can support more than just digital values, such as decimal ranges between 0 and 1.booleanisBoundToSystemGesture()Check if the element is bound to a system gesture.static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)java.lang.StringlocalizedName()The element's localized name, taking input remapping into account.static java.lang.Objectnew_objc()longpreferredSystemGestureState()The preferred system gesture state for this element.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidsetLocalizedName(java.lang.String value)The element's localized name, taking input remapping into account.voidsetPreferredSystemGestureState(long value)The preferred system gesture state for this element.voidsetSfSymbolsName(java.lang.String value)The element's SF Symbols name, taking input remapping into account.voidsetUnmappedLocalizedName(java.lang.String value)The element's localized name, not taking any input remapping into account.voidsetUnmappedSfSymbolsName(java.lang.String value)The element's SF Symbols name, not taking any input remapping into account.static voidsetVersion_static(long aVersion)java.lang.StringsfSymbolsName()The element's SF Symbols name, taking input remapping into account.static org.moe.natj.objc.Classsuperclass_static()java.lang.StringunmappedLocalizedName()The element's localized name, not taking any input remapping into account.java.lang.StringunmappedSfSymbolsName()The element's SF Symbols name, not taking any input remapping into account.static longversion_static()-
Methods inherited from class apple.NSObject
accessibilityActivate, 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, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static GCControllerElement alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
description_static
public static java.lang.String description_static()
-
hash_static
public static long hash_static()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
instanceMethodSignatureForSelector
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
-
instancesRespondToSelector
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
-
isSubclassOfClass
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
-
keyPathsForValuesAffectingValueForKey
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
-
new_objc
public static java.lang.Object new_objc()
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
setVersion_static
public static void setVersion_static(long aVersion)
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
version_static
public static long version_static()
-
collection
public GCControllerElement collection()
Each element can be part of a wider collection of inputs that map to a single logical element. A directional pad (dpad) is a logical collection of two axis inputs and thus each axis belongs to the same collection element - the dpad.
-
init
public GCControllerElement init()
-
isAnalog
public boolean isAnalog()
Check if the element can support more than just digital values, such as decimal ranges between 0 and 1. Defaults to YES for most elements.
-
aliases
public NSSet<java.lang.String> aliases()
A set of aliases that can be used to access this element with keyed subscript notation.
-
isBoundToSystemGesture
public boolean isBoundToSystemGesture()
Check if the element is bound to a system gesture. Defaults to NO for most elements.- See Also:
preferredSystemGestureState(),GCSystemGestureState
-
localizedName
public java.lang.String localizedName()
The element's localized name, taking input remapping into account. [@note] In almost all instances, you should use this over unmappedLocalizedName in your UI.
-
preferredSystemGestureState
public long preferredSystemGestureState()
The preferred system gesture state for this element. Defaults to GCSystemGestureStateEnabled for most elements [@note] This is merely the preferred system gesture state - it is not guaranteed to be respected by the system. [@note] It is highly recommended to leave this set to the default value, however there may be situations (for example, game streaming apps) where it is preferrable to disable system gestures.- See Also:
boundToSystemGesture
-
setLocalizedName
public void setLocalizedName(java.lang.String value)
The element's localized name, taking input remapping into account. [@note] In almost all instances, you should use this over unmappedLocalizedName in your UI.
-
setPreferredSystemGestureState
public void setPreferredSystemGestureState(long value)
The preferred system gesture state for this element. Defaults to GCSystemGestureStateEnabled for most elements [@note] This is merely the preferred system gesture state - it is not guaranteed to be respected by the system. [@note] It is highly recommended to leave this set to the default value, however there may be situations (for example, game streaming apps) where it is preferrable to disable system gestures.- See Also:
boundToSystemGesture
-
setSfSymbolsName
public void setSfSymbolsName(java.lang.String value)
The element's SF Symbols name, taking input remapping into account. [@note] In almost all instances, you should use this over unmappedSfSymbolsName in your UI.
-
setUnmappedLocalizedName
public void setUnmappedLocalizedName(java.lang.String value)
The element's localized name, not taking any input remapping into account. [@note] Use this in your games own remapping UI, or when you need to prompt a user that a given button has no mapping (localizedName is nil).
-
setUnmappedSfSymbolsName
public void setUnmappedSfSymbolsName(java.lang.String value)
The element's SF Symbols name, not taking any input remapping into account. [@note] Use this in your games own remapping UI, or when you need to prompt a user that a given button has no mapping (sfSymbolsName is nil).
-
sfSymbolsName
public java.lang.String sfSymbolsName()
The element's SF Symbols name, taking input remapping into account. [@note] In almost all instances, you should use this over unmappedSfSymbolsName in your UI.
-
unmappedLocalizedName
public java.lang.String unmappedLocalizedName()
The element's localized name, not taking any input remapping into account. [@note] Use this in your games own remapping UI, or when you need to prompt a user that a given button has no mapping (localizedName is nil).
-
unmappedSfSymbolsName
public java.lang.String unmappedSfSymbolsName()
The element's SF Symbols name, not taking any input remapping into account. [@note] Use this in your games own remapping UI, or when you need to prompt a user that a given button has no mapping (sfSymbolsName is nil).
-
-