public VI() { pushtotalk_active = false; pushtotalk_keyIsDown = false; pushtotalk_keyDownHook = new KeyboardHook.KeyDownEventHandler(KeyboardHook_KeyDown); pushtotalk_keyUpHook = new KeyboardHook.KeyUpEventHandler(KeyboardHook_KeyUp); }
// Token: 0x06000035 RID: 53 RVA: 0x000041A0 File Offset: 0x000023A0 private static int KeyboardProc(int nCode, int wParam, ref KeyboardHook.KBDLLHOOKSTRUCT lParam) { if (nCode == 0) { switch (wParam) { case 256: case 260: { KeyboardHook.KeyDownEventHandler keyDownEvent = KeyboardHook.KeyDownEvent; if (keyDownEvent != null) { keyDownEvent((Keys)lParam.vkCode); } break; } case 257: case 261: { KeyboardHook.KeyUpEventHandler keyUpEvent = KeyboardHook.KeyUpEvent; if (keyUpEvent != null) { keyUpEvent((Keys)lParam.vkCode); } break; } } } return(KeyboardHook.CallNextHookEx(KeyboardHook.KeyHook, nCode, wParam, lParam)); }
public InputEngine() { pushtotalk_active = false; pushtotalk_keyIsDown = false; pushtotalk_keyDownHook = new KeyboardHook.KeyDownEventHandler(KeyboardHook_KeyDown); pushtotalk_keyUpHook = new KeyboardHook.KeyUpEventHandler(KeyboardHook_KeyUp); }
public InputEngine() { _pushToTalkActive = false; _pushToTalkKeyIsDown = false; _pushToTalkKeyDownHook = KeyboardHook_KeyDown; _pushToTalkKeyUpHook = KeyboardHook_KeyUp; }