FreePIE.Core.Plugins.KeyboardPlugin.IsKeyDown C# (CSharp) Method

IsKeyDown() public method

public IsKeyDown ( int keycode ) : bool
keycode int
return bool
        public bool IsKeyDown(int keycode)
        {
            // Returns true if the key is currently being pressed
            var key = (SlimDX.DirectInput.Key) keycode;
            bool down = KeyState.IsPressed(key) || MyKeyDown[keycode];
            return down;
        }

Usage Example

Exemplo n.º 1
0
 public bool getKeyDown(Key key)
 {
     return(plugin.IsKeyDown((int)key));
 }