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

◆ SetElementModifier()

bool ScriptedWidgetEventHandler::SetElementModifier ( UAInput pInput,
out string output )
inlineprotected

Determine the active limiter of the bindings (currently unreliable, multiple limiters can be active on key combos!)

См. определение в файле ControlMappingKeybinds.c строка 126

127 {
128 if (pInput.IsLimited())
129 {
130 if (pInput.IsPressLimit())
131 {
132 output = "#keybind_press";
133 }
134 if (pInput.IsReleaseLimit())
135 {
136 output = "#keybind_release";
137 }
138 if (pInput.IsHoldLimit())
139 {
140 output = "#keybind_hold";
141 }
142 if (pInput.IsHoldBeginLimit())
143 {
144 output = "#keybind_holdbegin";
145 }
146 if (pInput.IsClickLimit())
147 {
148 output = "#keybind_click";
149 }
150 if (pInput.IsDoubleClickLimit())
151 {
152 output = "#keybind_doubletap";
153 }
154
155 return true;
156 }
157 else
158 {
159 return false;
160 }
161 }
proto native bool IsHoldLimit()
proto native bool IsClickLimit()
proto native bool IsReleaseLimit()
proto native bool IsHoldBeginLimit()
proto native bool IsPressLimit()
proto native bool IsLimited()
proto native bool IsDoubleClickLimit()

Перекрестные ссылки UAInput::IsClickLimit(), UAInput::IsDoubleClickLimit(), UAInput::IsHoldBeginLimit(), UAInput::IsHoldLimit(), UAInput::IsLimited(), UAInput::IsPressLimit() и UAInput::IsReleaseLimit().

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