Implement matrix type field for Razer controllers to reduce redundant code

This commit is contained in:
Adam Honse committed 2021-03-31 22:27:30 -05:00
1 parent db9146147b
commit 27784db5e1
2 files changed
+430 -630

No files matched your search

File diff suppressed because it is too large. Load diff
@@ -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 |
\*---------------------------------------------------------*/