Overview
If you wish to use the SDK, you should be dynamically linking to the wooting-analog-wrapper
library and shipping it with your application. The way the SDK works is that it uses the wrapper to try and find the SDK at runtime, so it may gracefully error if the SDK isn’t found. The wrapper library just passes through SDK calls to the actual SDK, so if there is an SDK update with new features, you only need to update your wrapper when you wish to use them.
Getting Started
To get started, make sure you have the SDK & Wooting plugin installed. Follow the installation instructions from the SDK Readme.
Then download & extract the .tar.gz
for the platform you’re targeting from the latest release. Inside the $extract/wrapper
directory you’ll find the wrapper lib you should link to and all the headers you may need.
Keycodes
By default the SDK will use the USB HID codes (see table 10.6) to identify keys. This can be changed using the Set Keycode Mode function, which changes the keycodes taken by read_analog
and the keycodes given in read_full_buffer
. The available options are:
HID
: The standard USB HID codes (default) List on table 10.6ScanCode1
: Scan codes set 1, see Set 1 column on table 10.6 (Escape codes can be given as either a 0x1 or 0xE0 prefix)VirtualKey
: Windows Virtual Key codesVirtualKeyTranslate
: Windows Virtual Key codes but they are translated based on layout, so requesting the letter Q gets the key that inputs Q on the selected layout, rather than always getting the key right of tab (the standard Q position) likeVirtualKey
would.