C# Class CSharp___DllImport.Phone.KeyboardHook

Afficher le fichier Open project: ApexHAB/apex-lumia

Méthodes publiques

Méthode Description
EnableHardwareKeyboard ( bool bEnable ) : bool

The EnableHardwareKeyboard function is useful for applications in which a user can write on the touch screen. When the keyboard is disabled, a user can rest a hand on it without causing spurious keyboard input. Use the disable mode carefully. If an application hangs while the keyboard is disabled, the keyboard is not available to other applications.

GetKeyState ( WM nVirtKey ) : short

Not sure if those are used in WP7

GetKeyboardStatus ( ) : KBDI_KEYBOARD
IsKeyDown ( PhysicalKeys key ) : bool
StartHook ( PhysicalKeys listenFor ) : void
StopHook ( ) : void

Private Methods

Méthode Description
IsLongHold ( PhysicalKeys key ) : bool
KeyboardHook ( ) : System

Method Details

EnableHardwareKeyboard() public static méthode

The EnableHardwareKeyboard function is useful for applications in which a user can write on the touch screen. When the keyboard is disabled, a user can rest a hand on it without causing spurious keyboard input. Use the disable mode carefully. If an application hangs while the keyboard is disabled, the keyboard is not available to other applications.
public static EnableHardwareKeyboard ( bool bEnable ) : bool
bEnable bool [in] Boolean value that specifies whether to enable or disable the keyboard. Set it to TRUE to enable the keyboard or FALSE to disable it.
Résultat bool

GetKeyState() public static méthode

Not sure if those are used in WP7
public static GetKeyState ( WM nVirtKey ) : short
nVirtKey WM
Résultat short

GetKeyboardStatus() public static méthode

public static GetKeyboardStatus ( ) : KBDI_KEYBOARD
Résultat KBDI_KEYBOARD

IsKeyDown() public static méthode

public static IsKeyDown ( PhysicalKeys key ) : bool
key PhysicalKeys
Résultat bool

StartHook() public static méthode

public static StartHook ( PhysicalKeys listenFor ) : void
listenFor PhysicalKeys
Résultat void

StopHook() public static méthode

public static StopHook ( ) : void
Résultat void