DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ LocalPress_ID()

proto native bool Input::LocalPress_ID ( int action,
bool check_focus = true )
private

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

Заметки
if the input is limited (click, hold, doubleclick), 'Press' event is limited as well, and reacts to the limiter only! Otherwise it registeres the first event, usually 'press' (change of value from 0)
Аргументы
actionid of action, defined in 4_World/Classes/UserActionsComponent/_constants.c
check_focusif true and game is unfocused, returns 0; otherwise returns actual value
Возвращает
true if action was invoked in that frame, false otherwise
См. также
LocalPress()

Используется в HandleInput().