C# Class PointerDeviceDriver.KeyboardDriver

Inheritance: IPlugin, IKeyboardDriver
显示文件 Open project: Invenietis/ck-certified

Public Methods

Method Description
KeyboardDriver ( ) : System
RegisterCancellableKey ( int keyCode ) : void

Register a keyCode. Once registered, the key will be swallowed and propagated through the KeyDown event.

Setup ( CK.Plugin.IPluginSetupInfo info ) : bool
Start ( ) : void
Stop ( ) : void
Teardown ( ) : void
UnregisterCancellableKey ( int keyCode ) : void

Unregister a keyCode. The keyCode won't be be swallowed and propagated anymore. Note : doesn't handle a counter yet, which means that unregistering this keyCode will unregister it for any plugin using this service.

Private Methods

Method Description
FireEvent ( int vkCode, InputSource source ) : void
OnHookInvoqued ( object sender, HookEventArgs e ) : void

Method which provides an interpretation for all hook events. Depending of the hook's params we'll fire the good event.

Method Details

KeyboardDriver() public method

public KeyboardDriver ( ) : System
return System

RegisterCancellableKey() public method

Register a keyCode. Once registered, the key will be swallowed and propagated through the KeyDown event.
public RegisterCancellableKey ( int keyCode ) : void
keyCode int The keycode to register (ex : "a" is 65)
return void

Setup() public method

public Setup ( CK.Plugin.IPluginSetupInfo info ) : bool
info CK.Plugin.IPluginSetupInfo
return bool

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

Teardown() public method

public Teardown ( ) : void
return void

UnregisterCancellableKey() public method

Unregister a keyCode. The keyCode won't be be swallowed and propagated anymore. Note : doesn't handle a counter yet, which means that unregistering this keyCode will unregister it for any plugin using this service.
public UnregisterCancellableKey ( int keyCode ) : void
keyCode int The keycode to register (ex : "a" is 65)
return void