-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Actually implement the new extra options
- Add laptop performance state configuration (different from Windows power plans) - Add Win/Fn key swap option
- Loading branch information
1 parent
9a89152
commit 3f21884
Showing
9 changed files
with
224 additions
and
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using System.Xml.Serialization; | ||
|
||
namespace YAMDCC.Config | ||
{ | ||
public class KeySwapConf | ||
{ | ||
/// <summary> | ||
/// The register that controls the Win/Fn key swap state. | ||
/// </summary> | ||
[XmlElement] | ||
public byte Reg; | ||
|
||
/// <summary> | ||
/// Is the Win/Fn key swap feature enabled? | ||
/// </summary> | ||
[XmlElement] | ||
public bool Enabled; | ||
|
||
/// <summary> | ||
/// The value to turn on Win/Fn key swapping. | ||
/// </summary> | ||
[XmlElement] | ||
public byte OnVal; | ||
|
||
/// <summary> | ||
/// The value to turn off Win/Fn key swapping. | ||
/// </summary> | ||
[XmlElement] | ||
public byte OffVal; | ||
} | ||
} |
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,26 @@ | ||
using System.Xml.Serialization; | ||
|
||
namespace YAMDCC.Config | ||
{ | ||
public class PerfMode | ||
{ | ||
/// <summary> | ||
/// The name of the performance mode. | ||
/// </summary> | ||
[XmlElement] | ||
public string Name; | ||
|
||
/// <summary> | ||
/// The description of the performance mode. | ||
/// </summary> | ||
[XmlElement] | ||
public string Desc; | ||
|
||
/// <summary> | ||
/// The value to write to the EC register | ||
/// when this performance mode is selected. | ||
/// </summary> | ||
[XmlElement] | ||
public byte Value; | ||
} | ||
} |
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,26 @@ | ||
using System.Xml.Serialization; | ||
|
||
namespace YAMDCC.Config | ||
{ | ||
public class PerfModeConf | ||
{ | ||
/// <summary> | ||
/// The register that controls the performance mode. | ||
/// </summary> | ||
[XmlElement] | ||
public byte Reg; | ||
|
||
/// <summary> | ||
/// The currently selected performance mode, as | ||
/// an index of the available performance modes. | ||
/// </summary> | ||
[XmlElement] | ||
public int ModeSel; | ||
|
||
/// <summary> | ||
/// An array of possible performance modes for the laptop. | ||
/// </summary> | ||
[XmlArray] | ||
public PerfMode[] PerfModes; | ||
} | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.