Exemple #1
0
 public CompositeHook()
 {
     KeyboardHook             = new LowLevelKeyboardHook();
     RegisteredButtons        = new List <GamepadButton>();
     KeyboardHook.KeyPressed += KeyboardHook_KeyPressed;
     InitializeGamepadHook();
 }
Exemple #2
0
 public CompositeHook()
 {
     KeyboardHook               = new LowLevelKeyboardHook();
     GamepadHook                = new GamepadHook();
     RegisteredButtons          = new List <GamepadButton>();
     KeyboardHook.KeyPressed   += KeyboardHook_KeyPressed;
     GamepadHook.ButtonPressed += GamepadHook_ButtonPressed;
 }
Exemple #3
0
        public CompositeHook(bool allowGamepads)
        {
            KeyboardHook             = new LowLevelKeyboardHook();
            RegisteredButtons        = new List <GamepadButton>();
            KeyboardHook.KeyPressed += KeyboardHook_KeyPressed;

            gamepadHookInitialized = false;
            initializeEventCalled  = false;
            AllowGamepads          = allowGamepads;
        }
        public CompositeHook()
        {
            KeyboardHook = new LowLevelKeyboardHook();

            KeyboardHook.KeyPressed += KeyboardHook_KeyPressed;
        }
 public CompositeHook()
 {
     KeyboardHook = new LowLevelKeyboardHook();
     GamepadHook = new GamepadHook();
     RegisteredButtons = new List<GamepadButton>();
     KeyboardHook.KeyPressed += KeyboardHook_KeyPressed;
     GamepadHook.ButtonPressed += GamepadHook_ButtonPressed;
 }