mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-05-03 04:02:57 -04:00
Add function for setting device mode
This commit is contained in:
@@ -64,8 +64,7 @@ RazerController::RazerController(hid_device* dev_handle, const char* path, unsig
|
||||
|
||||
case RAZER_CHARGING_PAD_CHROMA_PID:
|
||||
{
|
||||
razer_report report = razer_create_device_mode_report(0x03, 0x00);
|
||||
razer_usb_send(&report);
|
||||
razer_set_device_mode(RAZER_DEVICE_MODE_SOFTWARE);
|
||||
dev_transaction_id = 0x1F;
|
||||
}
|
||||
break;
|
||||
@@ -768,6 +767,12 @@ void RazerController::razer_set_custom_frame(unsigned char row_index, unsigned c
|
||||
razer_usb_send(&report);
|
||||
}
|
||||
|
||||
void RazerController::razer_set_device_mode(unsigned char device_mode)
|
||||
{
|
||||
razer_report report = razer_create_device_mode_report(device_mode, 0x00);
|
||||
razer_usb_send(&report);
|
||||
}
|
||||
|
||||
void RazerController::razer_set_mode_custom()
|
||||
{
|
||||
razer_report report;
|
||||
|
||||
Reference in New Issue
Block a user