DayZ 1.30
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 строка 165

166 {
167 if (pInput.IsLimited())
168 {
169 if (pInput.IsPressLimit())
170 {
171 output = "#keybind_press";
172 }
173 if (pInput.IsReleaseLimit())
174 {
175 output = "#keybind_release";
176 }
177 if (pInput.IsHoldLimit())
178 {
179 output = "#keybind_hold";
180 }
181 if (pInput.IsHoldBeginLimit())
182 {
183 output = "#keybind_holdbegin";
184 }
185 if (pInput.IsClickLimit())
186 {
187 output = "#keybind_click";
188 }
189 if (pInput.IsDoubleClickLimit())
190 {
191 output = "#keybind_doubletap";
192 }
193
194 return true;
195 }
196 else
197 {
198 return false;
199 }
200 }
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().

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