コード例 #1
0
ファイル: CompositeHook.cs プロジェクト: wooferzfg/LiveSplit
 public CompositeHook()
 {
     KeyboardHook             = new LowLevelKeyboardHook();
     RegisteredButtons        = new List <GamepadButton>();
     KeyboardHook.KeyPressed += KeyboardHook_KeyPressed;
     InitializeGamepadHook();
 }
コード例 #2
0
 public CompositeHook()
 {
     KeyboardHook               = new LowLevelKeyboardHook();
     GamepadHook                = new GamepadHook();
     RegisteredButtons          = new List <GamepadButton>();
     KeyboardHook.KeyPressed   += KeyboardHook_KeyPressed;
     GamepadHook.ButtonPressed += GamepadHook_ButtonPressed;
 }
コード例 #3
0
ファイル: CompositeHook.cs プロジェクト: Zyntex1/AeroSplit
        public CompositeHook(bool allowGamepads)
        {
            KeyboardHook             = new LowLevelKeyboardHook();
            RegisteredButtons        = new List <GamepadButton>();
            KeyboardHook.KeyPressed += KeyboardHook_KeyPressed;

            gamepadHookInitialized = false;
            initializeEventCalled  = false;
            AllowGamepads          = allowGamepads;
        }
コード例 #4
0
        public CompositeHook()
        {
            KeyboardHook = new LowLevelKeyboardHook();

            KeyboardHook.KeyPressed += KeyboardHook_KeyPressed;
        }
コード例 #5
0
 public CompositeHook()
 {
     KeyboardHook = new LowLevelKeyboardHook();
     GamepadHook = new GamepadHook();
     RegisteredButtons = new List<GamepadButton>();
     KeyboardHook.KeyPressed += KeyboardHook_KeyPressed;
     GamepadHook.ButtonPressed += GamepadHook_ButtonPressed;
 }