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

◆ GetImagesetAndIconFromInputAction() [1/2]

static void InputUtils::GetImagesetAndIconFromInputAction ( notnull UAInput pInput,
int pInputDeviceType,
out array< string > pImageSet,
out array< string > pIconName )
inlinestaticprotected

Asia vs Europe/N.America controller layout

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

119 {
120 array<string> buttons = InputUtils.GetButtonIconPathFromInput(pInput, pInputDeviceType);
121 if (buttons.Count() == 0 )
122 {
123 return;
124 }
125
126 for (int i = 0; i < buttons.Count(); i++)
127 {
128 array<string> parts = new array<string>;
129 buttons.Get(i).Split(":", parts);
130
131 if (parts.Count() < 2)
132 {
133 return;
134 }
135
136 pImageSet.Insert(parts[1].SubstringInverted(parts[1], parts[1].Length() - 6, parts[1].Length()));
137
139 #ifdef PLATFORM_PS4
140 if (GetGame().GetInput().GetEnterButton() == GamepadButton.B)
141 {
143 if (parts[2] == "cross")
144 {
145 parts[2] = "circle";
146 }
147
149 if (parts[2] == "circle")
150 {
151 parts[2] = "cross";
152 }
153 }
154 #endif
155
156 pIconName.Insert(parts[2]);
157 }
158 }
proto native CGame GetGame()
GamepadButton
Определения EnSystem.c:341

Перекрестные ссылки GetButtonIconPathFromInput() и GetGame().

Используется в GetImagesetAndIconFromInputAction(), GetRichtextButtonIconFromInputAction() и GetRichtextButtonIconFromInputAction().