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

◆ OnKeyboardConnected()

void Input::OnKeyboardConnected ( )
inlineprivate

callback that is fired when keyboard is connected (PS: and assigned to the user) does not fire on PC - mouse/keyboard assumed to always be connected

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

399 {
400 if (!g_Game)
401 return;
402
404 if (!g_Game.IsLoading() && GetGame().GetMission())
405 {
406 DayZLoadState state = g_Game.GetLoadState();
407 if (state != DayZLoadState.MAIN_MENU_START && state != DayZLoadState.MAIN_MENU_USER_SELECT)
408 {
409 GetGame().GetMission().GetOnInputDeviceConnected().Invoke(EUAINPUT_DEVICE_KEYBOARD);
410 }
411 }
412 }
DayZGame g_Game
Определения DayZGame.c:3868
proto native Mission GetMission()
void UpdateConnectedInputDeviceList()
currently lists only available Gamepad, Mouse, and Keyboard. Extendable as needed.
Определения input.c:227
ScriptInvoker GetOnInputDeviceConnected()
Определения gameplay.c:867
proto void Invoke(void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
invoke call on all inserted methods with given arguments
proto native CGame GetGame()

Перекрестные ссылки g_Game, GetGame(), CGame::GetMission(), Mission::GetOnInputDeviceConnected(), ScriptInvoker::Invoke() и UpdateConnectedInputDeviceList().