C# Class Open.Core.Keyboard

Global monitoring of keyboard state.
Afficher le fichier Open project: philcockfield/Open.TestHarness.SL

Méthodes publiques

Méthode Description
IsKey ( jQueryApi.jQueryEvent e, Key keyCode ) : bool

Determines whether the specified code matches the given event.

ToKey ( jQueryApi.jQueryEvent e ) : Key

Converts the given key event to the corresponding enum value (if represented in the enum).

Private Methods

Méthode Description
FireKeydown ( jQueryApi.jQueryEvent e ) : void
FireKeyup ( jQueryApi.jQueryEvent e ) : void
Keyboard ( ) : System

Constructor.

Method Details

IsKey() public static méthode

Determines whether the specified code matches the given event.
public static IsKey ( jQueryApi.jQueryEvent e, Key keyCode ) : bool
e jQueryApi.jQueryEvent The jQuery keyboard event.
keyCode Key The code to match.
Résultat bool

ToKey() public static méthode

Converts the given key event to the corresponding enum value (if represented in the enum).
public static ToKey ( jQueryApi.jQueryEvent e ) : Key
e jQueryApi.jQueryEvent The jQuery keyboard event.
Résultat Key