PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
UAInterface Class Reference

Private Member Functions

private void UAInterface ()
 
private void ~UAInterface ()
 
proto native float SyncedValue_ID (int action, bool check_focus=true)
 Get action state.
 
proto native float SyncedValue (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 SyncedPress (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 bool SyncedRelease (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 SyncedHold (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 SyncedDbl (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 SyncedClick (string action, bool check_focus=true)
 

Constructor & Destructor Documentation

◆ UAInterface()

private void UAInterface ( )
inlineprivate

◆ ~UAInterface()

private void ~UAInterface ( )
inlineprivate

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 DayZCreature::ModCommandHandlerBefore().


The documentation for this class was generated from the following file: