Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
UAInterface Class Reference

Private Member Functions

void UAInterface ()
void ~UAInterface ()
proto native bool SyncedClick (string action, bool check_focus=true)
proto native bool SyncedClick_ID (int action, bool check_focus=true)
 Returns true just in frame, when single click action invoked (button pressed and released before hold timer).
proto native bool SyncedDbl (string action, bool check_focus=true)
proto native bool SyncedDbl_ID (int action, bool check_focus=true)
 Returns true just in frame, when double click action invoked (button double clicked).
proto native bool SyncedHold (string action, bool check_focus=true)
proto native bool SyncedHold_ID (int action, bool check_focus=true)
 Returns true just in frame, when hold action invoked (button is hold).
proto native bool SyncedPress (string action, bool check_focus=true)
proto native bool SyncedPress_ID (int action, bool check_focus=true)
 Returns true just in frame, when action was invoked (button was pressed).
proto native bool SyncedRelease (string action, bool check_focus=true)
proto native bool SyncedRelease_ID (int action, bool check_focus=true)
 Returns true just in frame, when release action happened (button was released).
proto native float SyncedValue (string action, bool check_focus=true)
proto native float SyncedValue_ID (int action, bool check_focus=true)
 Get action state.

Detailed Description

Definition at line 96 of file uainput.c.

Constructor & Destructor Documentation

◆ UAInterface()

void UAInterface ( )
inlineprivate

Definition at line 98 of file uainput.c.

◆ ~UAInterface()

void ~UAInterface ( )
inlineprivate

Definition at line 99 of file uainput.c.

Member Function Documentation

◆ SyncedClick()

proto native bool SyncedClick ( string action,
bool check_focus = true )
private

◆ SyncedClick_ID()

proto native bool SyncedClick_ID ( int action,
bool check_focus = true )
private

Returns true just in frame, when single click action invoked (button pressed and released before hold timer).

Parameters
actionid of action, defined in 4_World/Classes/UserActionsComponent/_constants.c
check_focusif true and game is unfocused, returns 0; otherwise returns actual value
Returns
true if action was released in that frame, false otherwise
See also
SyncedClick()

◆ SyncedDbl()

proto native bool SyncedDbl ( string action,
bool check_focus = true )
private

◆ SyncedDbl_ID()

proto native bool SyncedDbl_ID ( int action,
bool check_focus = true )
private

Returns true just in frame, when double click action invoked (button double clicked).

Parameters
actionid of action, defined in 4_World/Classes/UserActionsComponent/_constants.c
check_focusif true and game is unfocused, returns 0; otherwise returns actual value
Returns
true if action was released in that frame, false otherwise
See also
SyncedDbl()

◆ SyncedHold()

proto native bool SyncedHold ( string action,
bool check_focus = true )
private

◆ SyncedHold_ID()

proto native bool SyncedHold_ID ( int action,
bool check_focus = true )
private

Returns true just in frame, when hold action invoked (button is hold).

Parameters
actionid of action, defined in 4_World/Classes/UserActionsComponent/_constants.c
check_focusif true and game is unfocused, returns 0; otherwise returns actual value
Returns
true if action was released in that frame, false otherwise
See also
SyncedHold()

◆ SyncedPress()

proto native bool SyncedPress ( string action,
bool check_focus = true )
private

◆ SyncedPress_ID()

proto native bool SyncedPress_ID ( int action,
bool check_focus = true )
private

Returns true just in frame, when action was invoked (button was pressed).

Parameters
actionid of action, defined in 4_World/Classes/UserActionsComponent/_constants.c
check_focusif true and game is unfocused, returns 0; otherwise returns actual value
Returns
true if action was invoked in that frame, false otherwise
See also
SyncedPress()

Referenced by DayZPlayer::HandleOptic().

◆ SyncedRelease()

proto native bool SyncedRelease ( string action,
bool check_focus = true )
private

◆ SyncedRelease_ID()

proto native bool SyncedRelease_ID ( int action,
bool check_focus = true )
private

Returns true just in frame, when release action happened (button was released).

Parameters
actionid of action, defined in 4_World/Classes/UserActionsComponent/_constants.c
check_focusif true and game is unfocused, returns 0; otherwise returns actual value
Returns
true if action was released in that frame, false otherwise
See also
SyncedRelease()

◆ SyncedValue()

proto native float SyncedValue ( string action,
bool check_focus = true )
private

◆ SyncedValue_ID()

proto native float SyncedValue_ID ( int action,
bool check_focus = true )
private

Get action state.

Parameters
actionid of action, defined in 4_World/Classes/UserActionsComponent/_constants.c
check_focusif true and game is unfocused, returns 0; otherwise returns actual value
Returns
actual action state as float, for regular two state buttons returns 0 or 1, for analog buttons/axes returns value in interval <0, 1> with consideration of defined deadzones
See also
SyncedValue()

Referenced by ManBase::CanChangeStance(), and DayZCreature::ModCommandHandlerBefore().


The documentation for this class was generated from the following file:
  • F:/Games/Dayz/scripts/3_game/inputapi/uainput.c