C# Class PointerDeviceDriver.KeyboardDriver

Inheritance: IPlugin, IKeyboardDriver
Afficher le fichier Open project: Invenietis/ck-certified

Méthodes publiques

Méthode 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

Méthode 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 méthode

public KeyboardDriver ( ) : System
Résultat System

RegisterCancellableKey() public méthode

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)
Résultat void

Setup() public méthode

public Setup ( CK.Plugin.IPluginSetupInfo info ) : bool
info CK.Plugin.IPluginSetupInfo
Résultat bool

Start() public méthode

public Start ( ) : void
Résultat void

Stop() public méthode

public Stop ( ) : void
Résultat void

Teardown() public méthode

public Teardown ( ) : void
Résultat void

UnregisterCancellableKey() public méthode

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)
Résultat void