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

◆ OnCommandHandlerUpdate()

void WeaponDebug::OnCommandHandlerUpdate ( )
inlineprivate

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

99 {
100
101 m_IsLMBPressed = false;
102 m_IsFireKeyPressed = false;
103
104 if (KeyState(KeyCode.KC_LWIN) == 1)
105 {
107 {
108 OnKeyDown(KeyCode.KC_LWIN);
109 }
110 m_IsDrawKeyHeldDown = true;
111 }
112 else
113 {
115 {
116 //OnKeyUp();
117 }
118 m_IsDrawKeyHeldDown = false;
119 }
120
121 if (KeyState(KeyCode.KC_Z) == 1)
122 {
123 ClearKey(KeyCode.KC_Z);
125 }
126
127 if (KeyState(KeyCode.KC_X) == 1)
128 {
129 m_IsFireKeyPressed = true;
130 ClearKey(KeyCode.KC_X);
131 }
132
133 if (GetMouseState(MouseState.LEFT) & MB_PRESSED_MASK)
134 {
135 m_IsLMBPressed = true;
136 }
137 }
bool m_IsLMBPressed
Определения WeaponDebug.c:22
bool m_IsFireKeyPressed
Определения WeaponDebug.c:24
void OnKeyDown(KeyCode key)
Определения WeaponDebug.c:139
void CycleDebugMode()
Определения WeaponDebug.c:146
bool m_IsDrawKeyHeldDown
Определения WeaponDebug.c:21
proto native void ClearKey(KeyCode key)
KeyCode
Определения EnSystem.c:157
proto native int KeyState(KeyCode key)
MouseState
Определения EnSystem.c:311
proto native int GetMouseState(MouseState index)

Перекрестные ссылки ClearKey(), CycleDebugMode(), GetMouseState(), KeyState(), m_IsDrawKeyHeldDown, m_IsFireKeyPressed, m_IsLMBPressed и OnKeyDown().