HPL3/Amnesia: Rebirth/Scripting/cAction

From Frictional Wiki
Jump to navigation Jump to search

Have some helpful descriptions to add to this class? Edit this page and add your insight to the Wiki!

Fields

cAction has no public fields.

Functions

Return Type Function And Description
void AddGamepadAxis(int alPadIndex, eGamepadAxis aAxis, eGamepadAxisRange aRange, float afMinThreshold, float afMaxThreshold)
void AddGamepadButton(int alPadIndex, eGamepadButton aButton)
void AddGamepadHat(int alPadIndex, eGamepadHat aHat, eGamepadHatState aHatState)
void AddKey(eKey aKey)
void AddMouseButton(eMouseButton aButton)
void AddSubAction(iSubAction@ apSubAction)
bool BecameTriggered()
void ClearSubActions()
bool DoubleTriggered(float afLimit)
int GetId()
tString GetName()
iSubAction GetSubAction(int alIdx)
int GetSubActionNum()
bool IsTriggered()
void ResetToCurrentState()
bool WasTriggered()

Details

AddGamepadAxis

void AddGamepadAxis(int alPadIndex,
                    eGamepadAxis aAxis,
                    eGamepadAxisRange aRange,
                    float afMinThreshold,
                    float afMaxThreshold)


Parameters

Returns:

  • void

AddGamepadButton

void AddGamepadButton(int alPadIndex,
                      eGamepadButton aButton)


Parameters

Returns:

  • void

AddGamepadHat

void AddGamepadHat(int alPadIndex,
                   eGamepadHat aHat,
                   eGamepadHatState aHatState)


Parameters

Returns:

  • void

AddKey

void AddKey(eKey aKey)


Parameters

Returns:

  • void

AddMouseButton

void AddMouseButton(eMouseButton aButton)


Parameters

Returns:

  • void

AddSubAction

void AddSubAction(iSubAction@ apSubAction)


Parameters

Returns:

  • void

BecameTriggered

bool BecameTriggered()

Returns:

  • bool

ClearSubActions

void ClearSubActions()

Returns:

  • void

DoubleTriggered

bool DoubleTriggered(float afLimit)


Parameters

  • afLimit (float) —

Returns:

  • bool

GetId

int GetId()

Returns:

  • int

GetName

const tString& GetName()

Returns:

  • const tString&

GetSubAction

iSubAction@ GetSubAction(int alIdx)


Parameters

  • alIdx (int) —

Returns:

  • iSubAction@

GetSubActionNum

int GetSubActionNum()

Returns:

  • int

IsTriggered

bool IsTriggered()

Returns:

  • bool

ResetToCurrentState

void ResetToCurrentState()

Returns:

  • void

WasTriggered

bool WasTriggered()

Returns:

  • bool

References

See all references...