Break the images into 3 layers of one color.
Manage smoothing through alpha channel instead of a median logic.
Re-add white color for pro controller buttons, because of smoother painting without annoying white spots.
Up the resolution to help high DPI screens
Make the form blur no more!
Fix all sizes and implement mechanism for auto sizing.
Additionally initialize all control fonts instead of from parent fonts, to fix textboxes/labels and more.
For now, some text can overlap for 144dpi (150% scaling) and higher. But even then, it's mostly usable.
Update IMU calibration values and testing based on the latest developments.
Move sensor/stick test winforms update logic to the loop fuction.
Lastly, add the base for a refresh button (probably also a disconnect button will be implemented).
Unfortunatelly, no hw no test. So I took users testing for granted..
Had to change my Joy-Con to be recognisable as a Pro Controller to test that the buttons color work on Pro controller on Switch and that the default white is actually to distinguish them from the black body.
Note: Now Pro buttons WHITE color will be previewed as Grey.
For now it can play only the .bnvib with 0x04 at offset 0x00.
The .jcvib file format is simple HD Rumble file I created with raw (Joycon protocol) values.
It can be created using look up tables and converting the frequencies and amplitudes to the correct commands.
The structure is:
Raw HD Rumble file format [.jcvib] (Joy-Con Format):
Big-Endian
Offset - size - Remarks
0x00 - uint32_t - Magic. 0x52524157 or RRAW in ASCII
0x04 - uint16_t - Sample rate in ms.
0x06 - uint32_t - Number of rumble patterns. This is how many groups of 4 bytes we have.
0x0A - uint32_t - Here the raw data starts. This should be in the values that joycon understand.
0x0E - uint32_t - 2nd Rumble pattern
And so on....
Example raw rumble pattern:
0x08C9C040:
0x08 is HF,
0xC9 is 0xC8 HA + 0x01 HF higher frequency bit.
0xC0 is 0x40 LF + 0x80 intermediate LA byte
0x40 is LA