public class GCControllerButtonInput extends GCControllerElement
| Modifier and Type | Class and Description |
|---|---|
static interface |
GCControllerButtonInput.Block_pressedChangedHandler_ret |
static interface |
GCControllerButtonInput.Block_setPressedChangedHandler |
static interface |
GCControllerButtonInput.Block_setTouchedChangedHandler |
static interface |
GCControllerButtonInput.Block_setValueChangedHandler |
static interface |
GCControllerButtonInput.Block_touchedChangedHandler_ret |
static interface |
GCControllerButtonInput.Block_valueChangedHandler_ret |
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
GCControllerButtonInput(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
static GCControllerButtonInput |
alloc() |
static GCControllerButtonInput |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
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() |
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
static long |
hash_static() |
GCControllerButtonInput |
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) |
boolean |
isPressed()
Buttons are mostly used in a digital sense, thus we have a recommended method for checking for pressed state instead of
interpreting the value.
|
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
boolean |
isTouched()
Some buttons feature capacitive touch capabilities where the user can touch the button
without pressing it.
|
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
static GCControllerButtonInput |
new_objc() |
GCControllerButtonInput.Block_pressedChangedHandler_ret |
pressedChangedHandler()
Set this block if you want to be notified when only the pressed state on this button changes.
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
setPressedChangedHandler(GCControllerButtonInput.Block_setPressedChangedHandler value)
Set this block if you want to be notified when only the pressed state on this button changes.
|
void |
setTouchedChangedHandler(GCControllerButtonInput.Block_setTouchedChangedHandler value) |
void |
setValue(float value)
Sets the normalized value for the button input.
|
void |
setValueChangedHandler(GCControllerButtonInput.Block_setValueChangedHandler value) |
static void |
setVersion_static(long aVersion) |
static org.moe.natj.objc.Class |
superclass_static() |
GCControllerButtonInput.Block_touchedChangedHandler_ret |
touchedChangedHandler() |
float |
value()
A normalized value for the input.
|
GCControllerButtonInput.Block_valueChangedHandler_ret |
valueChangedHandler() |
static long |
version_static() |
aliases, collection, isAnalog, isBoundToSystemGesture, localizedName, preferredSystemGestureState, setLocalizedName, setPreferredSystemGestureState, setSfSymbolsName, setUnmappedLocalizedName, setUnmappedSfSymbolsName, sfSymbolsName, unmappedLocalizedName, unmappedSfSymbolsNameaccessibilityActivate, 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, willChangeValuesAtIndexesForKeyprotected GCControllerButtonInput(org.moe.natj.general.Pointer peer)
public static boolean accessInstanceVariablesDirectly()
public static GCControllerButtonInput alloc()
public static GCControllerButtonInput 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 GCControllerButtonInput 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 init()
init in class GCControllerElementpublic boolean isPressed()
As a general guideline a button is pressed if the value exceeds 0. However there may be hysterisis applied to counter noisy input values, thus incidental values around the threshold value may not trigger a change in pressed state.
Others buttons may support two-stage actuation, where the button reports a value between 0 and 1 but is only considered pressed when its value is greater than some threshold other than 0.
pressedChangedHandler,
valuepublic GCControllerButtonInput.Block_pressedChangedHandler_ret pressedChangedHandler()
public void setPressedChangedHandler(GCControllerButtonInput.Block_setPressedChangedHandler value)
public void setValueChangedHandler(GCControllerButtonInput.Block_setValueChangedHandler value)
public float value()
valueChangedHandler,
pressedpublic GCControllerButtonInput.Block_valueChangedHandler_ret valueChangedHandler()
public void setValue(float value)
[@note] If the controller's snapshot flag is set to NO, this method has no effect.
value - the value to set the input to.valuepublic boolean isTouched()
For buttons without capacitive sensing, the touched state is true if the value exceeds 0.
touchChangedHandler,
pressedpublic void setTouchedChangedHandler(GCControllerButtonInput.Block_setTouchedChangedHandler value)
public GCControllerButtonInput.Block_touchedChangedHandler_ret touchedChangedHandler()