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

IsKeyUp() public method

public IsKeyUp ( int keycode ) : bool
keycode int
return bool
        public bool IsKeyUp(int keycode)
        {
            // Returns true if the key is currently being pressed
            var key = (SlimDX.DirectInput.Key) keycode;
            bool up = KeyState.IsReleased(key) && !MyKeyDown[keycode];
            return up;
        }

Usage Example

コード例 #1
0
 public bool getKeyUp(Key key)
 {
     return(plugin.IsKeyUp((int)key));
 }