Search Results for

    Show / Hide Table of Contents

    Class Keyboard

    Inheritance
    System.Object
    Keyboard
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Oasys.Common.Tools.Devices
    Assembly: Oasys.Common.dll
    Syntax
    [Obfuscation(Feature = "code control flow obfuscation", Exclude = true)]
    public class Keyboard

    Methods

    GetKey(Keyboard.KeyBoardScanCodes)

    Declaration
    public static Keys GetKey(Keyboard.KeyBoardScanCodes keyBoardScanCode)
    Parameters
    Type Name Description
    Keyboard.KeyBoardScanCodes keyBoardScanCode
    Returns
    Type Description
    System.Windows.Forms.Keys

    GetKeyBoardScanCode(Keys)

    Declaration
    public static Keyboard.KeyBoardScanCodes GetKeyBoardScanCode(Keys key)
    Parameters
    Type Name Description
    System.Windows.Forms.Keys key
    Returns
    Type Description
    Keyboard.KeyBoardScanCodes

    GetKeyState(Keys)

    Using keyboard event.

    Declaration
    public static Keyboard.KeyPressState GetKeyState(Keys keys)
    Parameters
    Type Name Description
    System.Windows.Forms.Keys keys
    Returns
    Type Description
    Keyboard.KeyPressState

    IsControlPressed()

    Declaration
    public static bool IsControlPressed()
    Returns
    Type Description
    System.Boolean

    IsKeyPressed(Keys)

    Using async key state

    Declaration
    public static bool IsKeyPressed(Keys keys)
    Parameters
    Type Name Description
    System.Windows.Forms.Keys keys
    Returns
    Type Description
    System.Boolean

    IsPressed(Keys)

    Using keyboard event.

    Declaration
    public static bool IsPressed(Keys keys)
    Parameters
    Type Name Description
    System.Windows.Forms.Keys keys
    Returns
    Type Description
    System.Boolean

    IsShiftPressed()

    Declaration
    public static bool IsShiftPressed()
    Returns
    Type Description
    System.Boolean

    SendKey(Keyboard.KeyBoardScanCodes)

    Declaration
    public static void SendKey(Keyboard.KeyBoardScanCodes scanCode)
    Parameters
    Type Name Description
    Keyboard.KeyBoardScanCodes scanCode

    SendKey(Int16)

    Declaration
    public static void SendKey(short keyBoardScanCode)
    Parameters
    Type Name Description
    System.Int16 keyBoardScanCode

    SendKeyDown(Keyboard.KeyBoardScanCodes)

    Declaration
    public static void SendKeyDown(Keyboard.KeyBoardScanCodes keyBoardScanCode)
    Parameters
    Type Name Description
    Keyboard.KeyBoardScanCodes keyBoardScanCode

    SendKeyDown(Int16)

    Declaration
    public static void SendKeyDown(short keyBoardScanCode)
    Parameters
    Type Name Description
    System.Int16 keyBoardScanCode

    SendKeyUp(Keyboard.KeyBoardScanCodes)

    Declaration
    public static void SendKeyUp(Keyboard.KeyBoardScanCodes keyBoardScanCode)
    Parameters
    Type Name Description
    Keyboard.KeyBoardScanCodes keyBoardScanCode

    SendKeyUp(Int16)

    Declaration
    public static void SendKeyUp(short keyBoardScanCode)
    Parameters
    Type Name Description
    System.Int16 keyBoardScanCode

    Events

    OnKeyPress

    Declaration
    public static event Keyboard.OnKeyPressCallback OnKeyPress
    Event Type
    Type Description
    Keyboard.OnKeyPressCallback

    Extension Methods

    Extensions.In<T>(T, T[])
    ☀
    ☾
    In This Article
    Back to top
    Generated by DocFX
    ☀
    ☾