mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Added new device ID for XGM 4090 https://github.com/seerge/g-helper/issues/299#issuecomment-2224819539
This commit is contained in:
@@ -7,15 +7,16 @@ namespace GHelper.USB
|
|||||||
{
|
{
|
||||||
public static class XGM
|
public static class XGM
|
||||||
{
|
{
|
||||||
const int XGM_ID = 0x1970;
|
|
||||||
const int ASUS_ID = 0x0b05;
|
const int ASUS_ID = 0x0b05;
|
||||||
|
|
||||||
|
static int[] deviceIds = { 0x1970, 0x1a9a};
|
||||||
|
|
||||||
public static void Write(byte[] data)
|
public static void Write(byte[] data)
|
||||||
{
|
{
|
||||||
HidDeviceLoader loader = new HidDeviceLoader();
|
HidDeviceLoader loader = new HidDeviceLoader();
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
HidDevice device = loader.GetDevices(ASUS_ID, XGM_ID).Where(device => device.CanOpen && device.GetMaxFeatureReportLength() >= 300).FirstOrDefault();
|
HidDevice device = loader.GetDevices(ASUS_ID).Where(device => deviceIds.Contains(device.ProductID) && device.CanOpen && device.GetMaxFeatureReportLength() >= 300).FirstOrDefault();
|
||||||
|
|
||||||
if (device is null)
|
if (device is null)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user