- Fixed gyro and reset_mouse not working when set to left joycon's buttons
This commit is contained in:
parent
18a117d3d2
commit
4b49cc305f
1 changed files with 5 additions and 4 deletions
|
@ -610,11 +610,12 @@ namespace BetterJoyForCemu {
|
|||
// TODO
|
||||
} else if (extraGyroFeature == "mouse" && (isPro || (other == null) || (other != null && (Boolean.Parse(ConfigurationManager.AppSettings["GyroMouseLeftHanded"]) ? isLeft : !isLeft)))) {
|
||||
string res_val = Config.Value("active_gyro");
|
||||
if (res_val.StartsWith("joy_"))
|
||||
if (buttons_down[Int32.Parse(res_val.Substring(4))])
|
||||
if (res_val.StartsWith("joy_")){
|
||||
if (buttons_down[Int32.Parse(res_val.Substring(4))] || (other != null && other.buttons_down[Int32.Parse(res_val.Substring(4))]))
|
||||
active_gyro = true;
|
||||
else if (buttons_up[Int32.Parse(res_val.Substring(4))])
|
||||
else if (buttons_up[Int32.Parse(res_val.Substring(4))] || (other != null && other.buttons_up[Int32.Parse(res_val.Substring(4))]))
|
||||
active_gyro = false;
|
||||
}
|
||||
|
||||
float dt = 0.015f; // 15ms
|
||||
|
||||
|
@ -629,7 +630,7 @@ namespace BetterJoyForCemu {
|
|||
// reset mouse position to centre of primary monitor
|
||||
res_val = Config.Value("reset_mouse");
|
||||
if (res_val.StartsWith("joy_"))
|
||||
if (buttons_down[Int32.Parse(res_val.Substring(4))])
|
||||
if (buttons_down[Int32.Parse(res_val.Substring(4))] || (other != null && other.buttons_down[Int32.Parse(res_val.Substring(4))]))
|
||||
WindowsInput.Simulate.Events().MoveTo(Screen.PrimaryScreen.Bounds.Width / 2, Screen.PrimaryScreen.Bounds.Height / 2).Invoke();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue