C# Class CSharp___DllImport.Phone.KeyboardHook

Mostra file Open project: ApexHAB/apex-lumia

Public Methods

Method 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

Method Description
IsLongHold ( PhysicalKeys key ) : bool
KeyboardHook ( ) : System

Method Details

EnableHardwareKeyboard() public static method

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.
return bool

GetKeyState() public static method

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

GetKeyboardStatus() public static method

public static GetKeyboardStatus ( ) : KBDI_KEYBOARD
return KBDI_KEYBOARD

IsKeyDown() public static method

public static IsKeyDown ( PhysicalKeys key ) : bool
key PhysicalKeys
return bool

StartHook() public static method

public static StartHook ( PhysicalKeys listenFor ) : void
listenFor PhysicalKeys
return void

StopHook() public static method

public static StopHook ( ) : void
return void