MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / AddAcceleratorKey

Method AddAcceleratorKey

ui/UIWindow.cpp:671–680  ·  view source on GitHub ↗

used to mark key pressed to id numbers

Source from the content-addressed store, hash-verified

669
670// used to mark key pressed to id numbers
671void UIWindow::AddAcceleratorKey(int key, int id) {
672 if (m_naccels == N_WINDOW_ACCELS) {
673 // window has asked for too many accelerators. will not add this one. it's okay to continue, but tell someone
674 Int3();
675 return;
676 }
677 m_Accelerators[m_naccels].id = id;
678 m_Accelerators[m_naccels].key = key;
679 m_naccels++;
680}
681
682void UIWindow::ResetAcceleratorKey() { m_naccels = 0; }
683

Callers 4

realizeMethod · 0.80
HelpDisplayFunction · 0.80
BuddyDisplayFunction · 0.80
BuddyBotDownloadDataFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected