used to mark key pressed to id numbers
| 669 | |
| 670 | // used to mark key pressed to id numbers |
| 671 | void 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 | |
| 682 | void UIWindow::ResetAcceleratorKey() { m_naccels = 0; } |
| 683 |
no outgoing calls
no test coverage detected