HPL3/Amnesia: Rebirth/Scripting/iGamepad
< HPL3 | Amnesia: Rebirth | Scripting
Jump to navigation
Jump to search
This page has been automatically generated, but it needs descriptions added to the various fields/functions in order to be complete. |
Have some helpful descriptions to add to this class? Edit this page and add your insight to the Wiki!
Contents
- 1 Fields
- 2 Functions
- 3 Details
- 3.1 AxesUpdated
- 3.2 ButtonIsDown
- 3.3 ButtonIsPressed
- 3.4 ButtonIsReleased
- 3.5 GetAxisDeadZoneRadiusValue
- 3.6 GetAxisValue
- 3.7 GetBallAbsPos
- 3.8 GetButton
- 3.9 GetColorLED
- 3.10 GetGamepadName
- 3.11 GetHatCurrentState
- 3.12 GetHatState
- 3.13 GetInputUpdate
- 3.14 GetNumAxes
- 3.15 GetNumBalls
- 3.16 GetNumButtons
- 3.17 GetNumHats
- 3.18 GetReleasedButton
- 3.19 GetUpdatedAxis
- 3.20 HasInputUpdates
- 3.21 HatIsInState
- 3.22 HatsChanged
- 3.23 SetAxisDeadZoneRadiusValue
- 3.24 SetColorLED
- 3.25 SetRumble
- 4 References
Fields
iGamepad has no public fields.
Functions
Return Type | Function And Description |
---|---|
bool | AxesUpdated() |
bool | ButtonIsDown(eGamepadButton aButton) |
bool | ButtonIsPressed() |
bool | ButtonIsReleased() |
float | GetAxisDeadZoneRadiusValue() |
float | GetAxisValue(eGamepadAxis aAxis) |
cVector2l | GetBallAbsPos(eGamepadBall aBall) |
cGamepadInputData | GetButton() |
cColor | GetColorLED() |
tString | GetGamepadName() |
eGamepadHatState | GetHatCurrentState(eGamepadHat aHat) |
cGamepadInputData | GetHatState() |
cGamepadInputData | GetInputUpdate() |
int | GetNumAxes() |
int | GetNumBalls() |
int | GetNumButtons() |
int | GetNumHats() |
cGamepadInputData | GetReleasedButton() |
cGamepadInputData | GetUpdatedAxis() |
bool | HasInputUpdates() |
bool | HatIsInState(eGamepadHat aHat, eGamepadHatState aState) |
bool | HatsChanged() |
void | SetAxisDeadZoneRadiusValue(float afValue) |
void | SetColorLED(const cColor &in aColor) |
void | SetRumble(float afValue, int alMillisec) |
Details
AxesUpdated
bool AxesUpdated()
Returns:
- bool—
ButtonIsDown
ButtonIsPressed
bool ButtonIsPressed()
Returns:
- bool—
ButtonIsReleased
bool ButtonIsReleased()
Returns:
- bool—
GetAxisDeadZoneRadiusValue
float GetAxisDeadZoneRadiusValue()
Returns:
- float—
GetAxisValue
GetBallAbsPos
GetButton
cGamepadInputData GetButton()
Returns:
- cGamepadInputData—
GetColorLED
cColor GetColorLED()
Returns:
- cColor—
GetGamepadName
tString GetGamepadName()
Returns:
- tString—
GetHatCurrentState
eGamepadHatState GetHatCurrentState(eGamepadHat aHat)
Parameters
- aHat (eGamepadHat) —
Returns:
- eGamepadHatState—
GetHatState
cGamepadInputData GetHatState()
Returns:
- cGamepadInputData—
GetInputUpdate
cGamepadInputData GetInputUpdate()
Returns:
- cGamepadInputData—
GetNumAxes
int GetNumAxes()
Returns:
- int—
GetNumBalls
int GetNumBalls()
Returns:
- int—
GetNumButtons
int GetNumButtons()
Returns:
- int—
GetNumHats
int GetNumHats()
Returns:
- int—
GetReleasedButton
cGamepadInputData GetReleasedButton()
Returns:
- cGamepadInputData—
GetUpdatedAxis
cGamepadInputData GetUpdatedAxis()
Returns:
- cGamepadInputData—
HasInputUpdates
bool HasInputUpdates()
Returns:
- bool—
HatIsInState
bool HatIsInState(eGamepadHat aHat,
eGamepadHatState aState)
Parameters
- aHat (eGamepadHat) —
- aState (eGamepadHatState) —
Returns:
- bool—
HatsChanged
bool HatsChanged()
Returns:
- bool—
SetAxisDeadZoneRadiusValue
void SetAxisDeadZoneRadiusValue(float afValue)
Parameters
- afValue (float) —
Returns:
- void
SetColorLED
SetRumble
void SetRumble(float afValue,
int alMillisec)
Parameters
- afValue (float) —
- alMillisec (int) —
Returns:
- void