MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / Destroy

Method Destroy

engine/Poseidon/UI/DisplayUI.cpp:969–990  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

967 int index = _keys->GetCurSel();
968 if (index < 0)
969 {
970 return;
971 }
972
973 _keys->CheckIgnoredKey();
974
975 auto& input = InputSubsystem::Instance();
976 int count = 0;
977 int dik = -1;
978 // const AutoArray<int> keyList = _keys->GetKeys(index);
979
980 if (!InputSubsystem::GetUserActionDesc()[index].axis)
981 {
982 for (int i = 0; i < 256; i++)
983 {
984 if (InputSubsystem::Instance().IsKeyPressed(static_cast<SDL_Scancode>(i)))
985 {
986 dik = i;
987 count++;
988 }
989 }
990 for (int i = 0; i < N_MOUSE_BUTTONS; i++)
991 {
992 if (i == 0)
993 {

Callers

nothing calls this directly

Calls 8

SetReverseMouseMethod · 0.80
SetJoystickEnabledMethod · 0.80
SetMouseSensitivityXMethod · 0.80
SetMouseSensitivityYMethod · 0.80
SetUserKeysMethod · 0.80
CompactUserKeysMethod · 0.80
SaveKeysMethod · 0.80

Tested by

no test coverage detected