- Fix application of UseIncrementalLights
This commit is contained in:
parent
7444c01adc
commit
f1996f3864
3 changed files with 5 additions and 5 deletions
|
@ -79,7 +79,7 @@
|
|||
<!-- Default: true -->
|
||||
<add key="HomeLEDOn" value="true"/>
|
||||
<!-- Will use multiple lights to display the current player rather than a single LED-->
|
||||
<add key="UseJoyconIncrementalLights" value="true" />
|
||||
<add key="UseIncrementalLights" value="true" />
|
||||
|
||||
<!-- Determines whether or not to translate gyro movements into joystick ("joy") or mouse movement ("mouse"), or have no effect ("none") -->
|
||||
<!-- When "joy", turn gyro movements into joystick movement (left/right depends on setting) [not yet implemented]-->
|
||||
|
|
|
@ -261,7 +261,7 @@ namespace BetterJoyForCemu {
|
|||
id = 3;
|
||||
}
|
||||
|
||||
if (ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None).AppSettings.Settings["UseJoyconIncrementalLights"].Value.ToLower() == "true") {
|
||||
if (ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None).AppSettings.Settings["UseIncrementalLights"].Value.ToLower() == "true") {
|
||||
// Set all LEDs from 0 to the given id to lit
|
||||
int ledId = id;
|
||||
LED = 0x0;
|
||||
|
@ -364,7 +364,7 @@ namespace BetterJoyForCemu {
|
|||
public Vector3 GetAccel() {
|
||||
return acc_g;
|
||||
}
|
||||
public int Attach(byte leds_ = 0x0) {
|
||||
public int Attach() {
|
||||
state = state_.ATTACHED;
|
||||
|
||||
// Make sure command is received
|
||||
|
@ -422,7 +422,7 @@ namespace BetterJoyForCemu {
|
|||
//Subcommand(0x01, new byte[] { 0x03 }, 1, true);
|
||||
|
||||
BlinkHomeLight();
|
||||
SetPlayerLED(leds_);
|
||||
SetLEDByPlayerNum(PadId);
|
||||
|
||||
Subcommand(0x40, new byte[] { (imu_enabled ? (byte)0x1 : (byte)0x0) }, 1);
|
||||
Subcommand(0x48, new byte[] { 0x01 }, 1);
|
||||
|
|
|
@ -304,7 +304,7 @@ namespace BetterJoyForCemu {
|
|||
jc.out_ds4.Connect();
|
||||
|
||||
try {
|
||||
jc.Attach(leds_: jc.LED);
|
||||
jc.Attach();
|
||||
} catch (Exception e) {
|
||||
jc.state = Joycon.state_.DROPPED;
|
||||
continue;
|
||||
|
|
Loading…
Add table
Reference in a new issue