Expose debugging parameters (#593)

This commit is contained in:
shukenmg 2020-11-03 16:20:42 +08:00 committed by GitHub
parent bfdea232cd
commit eda7605739
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 1 deletions

View file

@ -117,5 +117,16 @@
<!-- Power off controllers when Capture (left only) or Home (right only or combined) buttons are pressed for a long interval (2s) --> <!-- Power off controllers when Capture (left only) or Home (right only or combined) buttons are pressed for a long interval (2s) -->
<!-- Default: true --> <!-- Default: true -->
<add key="HomeLongPowerOff" value="true" /> <add key="HomeLongPowerOff" value="true" />
<!-- Determines what type of debugging information to be printed -->
<!-- None = 0 -->
<!-- All = 1 -->
<!-- Comms = 2 -->
<!-- Threading = 3 -->
<!-- IMU = 4 -->
<!-- Rumble = 5 -->
<!-- Shake Input = 6 -->
<!-- Default: 0 -->
<add key="DebugType" value="0" />
</appSettings> </appSettings>
</configuration> </configuration>

View file

@ -33,7 +33,8 @@ namespace BetterJoyForCemu {
RUMBLE, RUMBLE,
SHAKE, SHAKE,
}; };
public DebugType debug_type = DebugType.NONE; public DebugType debug_type = (DebugType)int.Parse(ConfigurationManager.AppSettings["DebugType"]);
//public DebugType debug_type = DebugType.NONE; //Keep this for manual debugging during development.
public bool isLeft; public bool isLeft;
public enum state_ : uint { public enum state_ : uint {
NOT_ATTACHED, NOT_ATTACHED,