ObjFW
 
Loading...
Searching...
No Matches
<OHExtendedGamepad> Protocol Reference

A game controller profile representing a gamepad. More...

#include <ObjFWHID/ObjFWHID.h>

Inheritance diagram for <OHExtendedGamepad>:
<OHGamepad> <OHGameControllerProfile> <OFObject> OH8BitDoUltimate2CWirelessGamepad OHDualSenseGamepad OHDualShock3Gamepad OHDualShock4Gamepad OHDualShockGamepad OHJoyConPair OHStadiaGamepad OHSwitchProController OHXboxGamepad

Properties

OHGameControllerButton * leftTriggerButton
 The left trigger button.
 
OHGameControllerButton * rightTriggerButton
 The right trigger button.
 
OHGameControllerButton * leftThumbstickButton
 The left thumb stick button.
 
OHGameControllerButton * rightThumbstickButton
 The right thumb stick button.
 
OHGameControllerButton * homeButton
 The home button.
 
OHGameControllerDirectionalPad * leftThumbstick
 The left thumb stick.
 
OHGameControllerDirectionalPad * rightThumbstick
 The right thumb stick.
 
- Properties inherited from <OHGamepad>
OHGameControllerButton * northButton
 The north button on the gamepad's diamond pad.
 
OHGameControllerButton * southButton
 The south button on the gamepad's diamond pad.
 
OHGameControllerButton * westButton
 The west button on the gamepad's diamond pad.
 
OHGameControllerButton * eastButton
 The east button on the gamepad's diamond pad.
 
OHGameControllerButton * leftShoulderButton
 The left shoulder button.
 
OHGameControllerButton * rightShoulderButton
 The right shoulder button.
 
OHGameControllerButton * menuButton
 The menu button, sometimes also called start button.
 
OHGameControllerButton * optionsButton
 The options button, sometimes also called select button.
 
OHGameControllerDirectionalPad * dPad
 The D-Pad.
 
- Properties inherited from <OHGameControllerProfile>
OFDictionary * buttons
 A map of all button names to their OHGameControllerButton.
 
OFDictionary * axes
 A map of all axis names to their OHGameControllerAxis.
 
OFDictionary * directionalPads
 A map of all directional pads to their OHGameControllerDirectionalPad.
 

Additional Inherited Members

- Instance Methods inherited from <OFObject>
(Class) - class
 Returns the class of the object.
 
(nullable Class) - superclass
 Returns the superclass of the object.
 
(unsigned long) - hash
 Returns a hash for the object.
 
(unsigned int) - retainCount
 Returns the retain count.
 
(bool) - isProxy
 Returns whether the object is a proxy object.
 
(bool) - isKindOfClass:
 Returns a boolean whether the object is of the specified kind.
 
(bool) - isMemberOfClass:
 Returns a boolean whether the object is a member of the specified class.
 
(bool) - respondsToSelector:
 Returns a boolean whether the object responds to the specified selector.
 
(bool) - conformsToProtocol:
 Checks whether the object conforms to the specified protocol.
 
(nullable IMP) - methodForSelector:
 Returns the implementation for the specified selector.
 
(nullable id) - performSelector:
 Performs the specified selector.
 
(nullable id) - performSelector:withObject:
 Performs the specified selector with the specified object.
 
(nullable id) - performSelector:withObject:withObject:
 Performs the specified selector with the specified objects.
 
(nullable id) - performSelector:withObject:withObject:withObject:
 Performs the specified selector with the specified objects.
 
(nullable id) - performSelector:withObject:withObject:withObject:withObject:
 Performs the specified selector with the specified objects.
 
(bool) - isEqual:
 Checks two objects for equality.
 
(instancetype) - retain
 Increases the retain count.
 
(void) - release
 Decreases the retain count.
 
(instancetype) - autorelease
 Adds the object to the topmost autorelease pool of the thread's autorelease pool stack.
 
(instancetype) - self
 Returns the receiver.
 
(bool) - allowsWeakReference
 Returns whether the object allows a weak reference.
 
(bool) - retainWeakReference
 Retain a weak reference to this object.
 

Detailed Description

A game controller profile representing a gamepad.

Property Documentation

◆ homeButton

- (OHGameControllerButton*) homeButton
readwriteatomic

The home button.

This button is optional and may be nil.

◆ leftThumbstickButton

- (OHGameControllerButton*) leftThumbstickButton
readwriteatomic

The left thumb stick button.

This button is optional and may be nil.

◆ rightThumbstickButton

- (OHGameControllerButton*) rightThumbstickButton
readwriteatomic

The right thumb stick button.

This button is optional and may be nil.


The documentation for this protocol was generated from the following file: