Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tx gaming mini #2813

Merged
merged 2 commits into from
Jul 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 39 additions & 2 deletions app/Peripherals/Mouse/Models/TUFM4Wireless.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public TUFM4Wirelss() : base(0x0B05, 0x19F4, "mi_00", true)
{
}

public TUFM4Wirelss(ushort productId) : base(0x0B05, productId, "mi_00", true)
public TUFM4Wirelss(ushort productId, bool wireless) : base(0x0B05, productId, "mi_00", wireless)
{
}

Expand Down Expand Up @@ -90,7 +90,7 @@ public override bool CanChangeDPIProfile()
//P310
public class TUFM4WirelssCN : TUFM4Wirelss
{
public TUFM4WirelssCN() : base(0x1A8D)
public TUFM4WirelssCN() : base(0x1A8D, true)
{

}
Expand All @@ -101,4 +101,41 @@ public override string GetDisplayName()
return "TX GAMING MOUSE (Wireless)";
}
}

//P519_Wireless
public class TXGamingMini : TUFM4Wirelss
{
public TXGamingMini() : base(0x1AF5, true)
{
}

public TXGamingMini(ushort productId, bool wireless) : base(productId, wireless)
{
}

public override string GetDisplayName()
{
return "TX GAMING MOUSE Mini (Wireless)";
}

public override bool HasXYDPI()
{
return true;
}

}

//P519_Wired
public class TXGamingMiniWired : TXGamingMini
{
public TXGamingMiniWired() : base(0x1AF3, false)
{
}

public override string GetDisplayName()
{
return "TX GAMING MOUSE Mini (Wired)";
}

}
}
2 changes: 2 additions & 0 deletions app/Peripherals/PeripheralsProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ public static void DetectAllAsusMice()
DetectMouse(new StrixCarry());
DetectMouse(new StrixImpactIII());
DetectMouse(new StrixImpact());
DetectMouse(new TXGamingMini());
DetectMouse(new TXGamingMiniWired());
DetectMouse(new Pugio());
}

Expand Down
Loading