15 #include "../G_Core/GBroadcasting.h" 17 #include "../G_System/GControllerInputDefines.h" 64 static const GUUIID GControllerUUIID =
66 0xdff7eebf, 0xc333, 0x4606,{ 0x95, 0x0, 0xbd, 0xe0, 0x1c, 0xe7, 0xc1, 0xcb }
94 virtual GReturn GetState(
int _controllerIndex,
int _inputCode,
float& _outState) = 0;
155 virtual GReturn StartVibration(
float _pan,
float _duration,
float _strength,
unsigned int _controllerIndex) = 0;
166 virtual GReturn IsVibrating(
unsigned int _controllerIndex,
bool& _outIsVibrating) = 0;
virtual GReturn GetMaxIndex(int &_outMax)=0
Outputs the max index of the array of controllers.
virtual GReturn StartVibration(float _pan, float _duration, float _strength, unsigned int _controllerIndex)=0
Start vibration in selected controller.
Definition: GController.h:53
virtual GReturn GetNumConnected(int &_outConnectedCount)=0
Outputs the number of controllers connected.
int isConnected
Definition: GController.h:43
virtual GReturn IsConnected(int _controllerIndex, bool &_outIsConnected)=0
Used to check if a controller is connected at a specified index.
Gateware Universally Unique Interface IDentifier.
Definition: GDefines.h:25
Definition: GController.h:59
float inputValue
Definition: GController.h:42
virtual GReturn StopVirbration(unsigned int _controllerIndex)=0
Used to stop a controller from vibrating.
int controllerIndex
Definition: GController.h:39
int controllerID
Definition: GController.h:40
The GBroadcasting Interface is capable of registering & deregistering GListener interfaces.
Definition: GBroadcasting.h:36
GReturn
Listing of common error codes returned by Gateware functions.
Definition: GDefines.h:53
GATEWARE_EXPORT_IMPLICIT GReturn CreateGController(int _controllerType, GController **_outController)
Creates a new GController object.
virtual GReturn GetState(int _controllerIndex, int _inputCode, float &_outState)=0
Used to poll the current state of a button or axis on a controller.
Definition: GController.h:51
GControllerEvents
GControllerEvents holds the possible events that can be sent from GController.
Definition: GController.h:48
virtual GReturn SetDeadZone(GControllerDeadzoneTypes _type, float _deadzonePercentage)=0
Set how the stick deadzones should be calculated.
Definition: GController.h:52
A multi-threaded controller input library.
Definition: GController.h:77
GControllerDeadzoneTypes
GControllerDeadzoneTypes holds the diffrent type of deadzone calculations.
Definition: GController.h:57
virtual GReturn StopAllVirbrations()=0
Stops all currently vibrating controllers.
The core namespace to which all Gateware interfaces/structures/defines must belong.
Definition: GAudio.h:20
Definition: GController.h:60
Ensure identical binary padding for structures on all platforms.
Definition: GController.h:37
virtual GReturn IsVibrating(unsigned int _controllerIndex, bool &_outIsVibrating)=0
Used to check if a controller is currently vibrating.
Definition: GController.h:50
int inputCode
Definition: GController.h:41