Implement matrix type field for Razer controllers to reduce redundant code

This commit is contained in:
Adam Honse
2021-03-31 22:15:15 -05:00
parent db9146147b
commit 27784db5e1
2 changed files with 430 additions and 630 deletions

View File

File diff suppressed because it is too large Load Diff

View File

@@ -87,6 +87,18 @@ enum
RAZER_LED_ID_ARGB_CH_6 = 0x1F,
};
/*---------------------------------------------------------*\
| Razer Matrix Type |
\*---------------------------------------------------------*/
enum
{
RAZER_MATRIX_TYPE_STANDARD = 0,
RAZER_MATRIX_TYPE_EXTENDED = 1,
RAZER_MATRIX_TYPE_LINEAR = 2,
RAZER_MATRIX_TYPE_EXTENDED_ARGB = 3,
RAZER_MATRIX_TYPE_CUSTOM = 4,
};
/*---------------------------------------------------------*\
| Razer Report Type (taken from OpenRazer) |
\*---------------------------------------------------------*/
@@ -197,6 +209,11 @@ private:
unsigned char report_index;
unsigned char response_index;
/*---------------------------------------------------------*\
| Matrix type |
\*---------------------------------------------------------*/
unsigned char matrix_type;
/*---------------------------------------------------------*\
| Private functions based on OpenRazer |
\*---------------------------------------------------------*/