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

Method SetKeys

engine/Poseidon/UI/DisplayUI.cpp:594–604  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

592
593void CKeys::RemoveKey(int action)
594{
595 int index = _keys[action].Size() - 1;
596 if (index < 0)
597 {
598 return;
599 }
600
601 int key = _keys[action][index];
602 bool collision = _collisions[action][index];
603
604 // delete
605 _keys[action].Resize(index);
606 _collisions[action].Resize(index);
607

Callers 2

OnCreateCtrlMethod · 0.80
OnButtonClickedMethod · 0.80

Calls 1

SizeMethod · 0.45

Tested by

no test coverage detected