Skip to content

Commit

Permalink
Arctis 1 Wireless - fixed inactive time functionality and added Windo…
Browse files Browse the repository at this point in the history
…ws Support (#196)

* Fixed inactive time function for Arctis 1
* Added Usage Page & Usage ID for Windows Support
  • Loading branch information
alisadah committed Mar 13, 2022
1 parent fbc7fe2 commit 74b6505
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/devices/steelseries_arctis_1.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ void arctis_1_init(struct device** device)
strncpy(device_arctis.device_name, "SteelSeries Arctis (1) Wireless", sizeof(device_arctis.device_name));

device_arctis.capabilities = B(CAP_SIDETONE) | B(CAP_BATTERY_STATUS) | B(CAP_INACTIVE_TIME);
device_arctis.capability_details[CAP_SIDETONE] = (struct capability_detail) { .interface = 0x03 };
device_arctis.capability_details[CAP_BATTERY_STATUS] = (struct capability_detail) { .interface = 0x03 };
device_arctis.capability_details[CAP_INACTIVE_TIME] = (struct capability_detail) { .interface = 0x03 };
device_arctis.capability_details[CAP_SIDETONE] = (struct capability_detail) { .usagepage = 0xff43, .usageid = 0x202, .interface = 0x03 };
device_arctis.capability_details[CAP_BATTERY_STATUS] = (struct capability_detail) { .usagepage = 0xff43, .usageid = 0x202, .interface = 0x03 };
device_arctis.capability_details[CAP_INACTIVE_TIME] = (struct capability_detail) { .usagepage = 0xff43, .usageid = 0x202, .interface = 0x03 };
device_arctis.send_sidetone = &arctis_1_send_sidetone;
device_arctis.request_battery = &arctis_1_request_battery;
device_arctis.send_inactive_time = &arctis_1_send_inactive_time;
Expand Down Expand Up @@ -112,7 +112,7 @@ static int arctis_1_send_inactive_time(hid_device* device_handle, uint8_t num)
// the range of the Arctis 7 seems to be from 0 to 0x5A (90)
// num = map(num, 0, 128, 0x00, 0x5A);

uint8_t data[31] = { 0x06, 0x51, num };
uint8_t data[31] = { 0x06, 0x53, num };

int ret = hid_write(device_handle, data, 31);

Expand Down

0 comments on commit 74b6505

Please sign in to comment.