-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement support for Rog Ally X (#362)
* Initial commit * add oem118 failsafe * todo: check PnPDevice PID/VID to deploy the appropriate inf * use vendorID and productID to pull the appropriate XInput driver - Generic XInput: xusb22.inf - Custom XInput (Rog Ally X): oem118.inf * Fixed an issue causing a crash on empty profile.TDPOverrideValues * Revert "Fixed an issue causing a crash on empty profile.TDPOverrideValues" This reverts commit 5fa36ec0c594c5f817ba80e35329ff72217b6c29. * improve controller drivers store logic * remove SuspendedControllers * improve DeviceManager fail-safe drivers restoration * add rog_ally_x illustration, thanks to @romracer * oups * improve memory management * improve virtual controller disposal on suspend * Fixed an issue affecting Alt Gr key locking LControl * Fixed an issue causing a crash when failing to retrieve deviceInfo for OneXPlayerX1 * Fix an issue preventing HC to load properly on X1Mini, which doesn't seams to have a serial chip * update libraries * remove splashscreen loading text * on popular demand, improve UI navigation when desktop layout is enabled inputs sent to UI are now post layout management * improve gamepad navigation on combobox. Handle disabled ComboBoxItem * prevent disabled comboBoxItem from being selected * clear hidDevices array on device Close() * build 0.21.6.1 * update ROGAllyX default power profiles * code cleanup * make PerformanceGuids public
- Loading branch information
Showing
29 changed files
with
269 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using HandheldCompanion.Misc; | ||
using System.Linq; | ||
using System.Numerics; | ||
|
||
namespace HandheldCompanion.Devices; | ||
|
||
public class ROGAllyX : ROGAlly | ||
{ | ||
public ROGAllyX() | ||
{ | ||
// device specific settings | ||
ProductIllustration = "device_rog_ally_x"; | ||
|
||
// used to monitor OEM specific inputs | ||
_pid = 0x1B4C; | ||
|
||
// overwrite ROGAlly default gyrometer axis settings | ||
GyrometerAxis = new Vector3(1.0f, 1.0f, -1.0f); | ||
|
||
// overwrite ROGAlly default power profiles | ||
PowerProfile powerProfile = DevicePowerProfiles.FirstOrDefault(profile => profile.Guid == BetterBatteryGuid); | ||
if (powerProfile != null) | ||
powerProfile.TDPOverrideValues = new[] { 13.0d, 13.0d, 13.0d }; | ||
|
||
powerProfile = DevicePowerProfiles.FirstOrDefault(profile => profile.Guid == BetterPerformanceGuid); | ||
if (powerProfile != null) | ||
powerProfile.TDPOverrideValues = new[] { 17.0d, 17.0d, 17.0d }; | ||
|
||
powerProfile = DevicePowerProfiles.FirstOrDefault(profile => profile.Guid == BestPerformanceGuid); | ||
if (powerProfile != null) | ||
powerProfile.TDPOverrideValues = new[] { 25.0d, 25.0d, 25.0d }; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.