Game controller interface. {DispatchWrapper}.
Public Member Functions | |
| virtual tBool | Update ()=0 |
| Update the device states. More... | |
| virtual tBool | GetIsConnected () const =0 |
| Return eTrue if the device is connected. {Property}. More... | |
| virtual const achar * | GetName () const =0 |
| Name of the input device. {Property}. More... | |
| virtual tU32 | GetIndex () const =0 |
| Get the index of the game controller. {Property}. More... | |
| virtual tU32 | GetNumButtons () const =0 |
| Return the number of buttons of the game controller. {Property}. More... | |
| virtual tF32 | GetButton (tU32 ulButton)=0 |
| Return the force applied on the button. {Property}. More... | |
| virtual tU32 | GetNumAxis () const =0 |
| Return the number of axis of the game controller. {Property}. More... | |
| virtual tF32 | GetAxis (eGameCtrlAxis axis)=0 |
| Return the position of the given axis {Property}. More... | |
| virtual tBool | GetCanVibrate () const =0 |
| Get whether the game controller can vibrate. {Property}. More... | |
| virtual void | Vibrate (const sVec2f &aSpeed)=0 |
| Set the left & right motor vibrations. More... | |
| virtual tBool | GetHasBattery () const =0 |
| Get whether the controller has a battery. {Property}. More... | |
| virtual tF32 | GetBatteryLevel () const =0 |
| Get the battery level. {Property}. More... | |
Public Member Functions inherited from iUnknown | |
| virtual tBool | IsOK () const =0 |
| Check if the object is valid. More... | |
| virtual tI32 | AddRef ()=0 |
| Signal that one more reference of the object has been created. More... | |
| virtual tI32 | Release ()=0 |
| Release a reference of the object. More... | |
| virtual void | DeleteThis ()=0 |
| Bypass any reference counting and delete this object. More... | |
| virtual void | Invalidate ()=0 |
| Invalidate the object. More... | |
| virtual iUnknown * | QueryInterface (const tUUID &aIID)=0 |
| Query an interface. More... | |
| virtual void | ListInterfaces (iMutableCollection *apLst, tU32 anFlags) const =0 |
| Fill a UUID list containing the UUIDs of the implemented interfaces. More... | |
| virtual tI32 | SetNumRefs (tI32 anNumRefs)=0 |
| Set the reference counter directly. More... | |
| virtual tI32 | GetNumRefs () const =0 |
| Get the number of references to this object. More... | |
|
pure virtual |
Update the device states.
|
pure virtual |
Return eTrue if the device is connected. {Property}.
|
pure virtual |
Name of the input device. {Property}.
|
pure virtual |
Get the index of the game controller. {Property}.
|
pure virtual |
Return the number of buttons of the game controller. {Property}.
Return the force applied on the button. {Property}.
|
pure virtual |
Return the number of axis of the game controller. {Property}.
|
pure virtual |
Return the position of the given axis {Property}.
|
pure virtual |
Get whether the game controller can vibrate. {Property}.
|
pure virtual |
Get whether the controller has a battery. {Property}.
|
pure virtual |
Get the battery level. {Property}.
1.8.7