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

◆ GetButtonNameFromInput()

static string InputUtils::GetButtonNameFromInput ( string pInputName,
int pInputDeviceType )
inlinestaticprotected

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

18 {
19 UAInput inp = GetUApi().GetInputByName(pInputName);
20 for (int i = 0; i < inp.AlternativeCount(); i++)
21 {
22 inp.SelectAlternative(i);
23 if (inp.CheckBindDevice(0, pInputDeviceType))
24 {
25 return GetUApi().GetButtonName(inp.GetBindKey(0));
26 }
27 }
28
29 return "";
30 }
proto native UAInputAPI GetUApi()
proto native int AlternativeCount()
proto native UAInput GetInputByName(string sInputName)
proto native owned string GetButtonName(int iHash)
proto native void SelectAlternative(int iIndex)
proto native int GetBindKey(int iIndex)
proto native bool CheckBindDevice(int iIndex, int iDeviceFlags)

Перекрестные ссылки UAInput::AlternativeCount(), UAInput::CheckBindDevice(), UAInput::GetBindKey(), UAInputAPI::GetButtonName(), UAInputAPI::GetInputByName(), GetUApi() и UAInput::SelectAlternative().

Используется в ActionTargetsCursor::SetInteractActionIcon().