Fixed gyro in single joycon mode.
Added tooltip on button.
This commit is contained in:
parent
37aba95e81
commit
68b6928d86
3 changed files with 18 additions and 0 deletions
|
@ -657,6 +657,18 @@ namespace BetterJoyForCemu {
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (other == null && !isPro) { // single joycon mode; Z do not swap, rest do
|
||||
if (isLeft) {
|
||||
acc_g.X = -acc_g.X;
|
||||
gyr_g.X = -gyr_g.X;
|
||||
} else {
|
||||
gyr_g.Y = -gyr_g.Y;
|
||||
}
|
||||
|
||||
float temp = acc_g.X; acc_g.X = acc_g.Y; acc_g.Y = temp;
|
||||
temp = gyr_g.X; gyr_g.X = gyr_g.Y; gyr_g.Y = temp;
|
||||
}
|
||||
}
|
||||
|
||||
public void Begin() {
|
||||
|
|
3
BetterJoyForCemu/MainForm.Designer.cs
generated
3
BetterJoyForCemu/MainForm.Designer.cs
generated
|
@ -42,6 +42,7 @@
|
|||
this.loc2 = new System.Windows.Forms.Button();
|
||||
this.loc3 = new System.Windows.Forms.Button();
|
||||
this.loc4 = new System.Windows.Forms.Button();
|
||||
this.btnTip = new System.Windows.Forms.ToolTip(this.components);
|
||||
this.contextMenu.SuspendLayout();
|
||||
this.conCntrls.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
|
@ -186,6 +187,7 @@
|
|||
this.con1.Size = new System.Drawing.Size(58, 58);
|
||||
this.con1.TabIndex = 0;
|
||||
this.con1.TabStop = false;
|
||||
this.btnTip.SetToolTip(this.con1, "Click on Joycons to join/split them");
|
||||
this.con1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// loc1
|
||||
|
@ -269,5 +271,6 @@
|
|||
private System.Windows.Forms.Button loc3;
|
||||
private System.Windows.Forms.Button loc2;
|
||||
private System.Windows.Forms.Button loc1;
|
||||
private System.Windows.Forms.ToolTip btnTip;
|
||||
}
|
||||
}
|
|
@ -762,6 +762,9 @@
|
|||
CICCwhBGEQAFhSHM/wf9FHIvlrkdFwAAAABJRU5ErkJggg==
|
||||
</value>
|
||||
</data>
|
||||
<metadata name="btnTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>247, 17</value>
|
||||
</metadata>
|
||||
<metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
|
|
Loading…
Add table
Reference in a new issue