C# Class Artemis.DeviceProviders.Corsair.CorsairKeyboards

Inheritance: KeyboardProvider
Show file Open project: SpoinkyNL/Artemis

Public Methods

Method Description
CanEnable ( ) : bool
CorsairKeyboards ( ILogger logger ) : System
Disable ( ) : void
DrawBitmap ( Bitmap bitmap ) : void

Properly resizes any size bitmap to the keyboard by creating a rectangle whose size is dependent on the bitmap size.

Enable ( ) : void

Enables the SDK and sets updatemode to manual as well as the color of the background to black.

GetKeyPosition ( Keys keyCode ) : KeyMatch?

Method Details

CanEnable() public method

public CanEnable ( ) : bool
return bool

CorsairKeyboards() public method

public CorsairKeyboards ( ILogger logger ) : System
logger ILogger
return System

Disable() public method

public Disable ( ) : void
return void

DrawBitmap() public method

Properly resizes any size bitmap to the keyboard by creating a rectangle whose size is dependent on the bitmap size.
public DrawBitmap ( Bitmap bitmap ) : void
bitmap System.Drawing.Bitmap
return void

Enable() public method

Enables the SDK and sets updatemode to manual as well as the color of the background to black.
public Enable ( ) : void
return void

GetKeyPosition() public method

public GetKeyPosition ( Keys keyCode ) : KeyMatch?
keyCode Keys
return KeyMatch?