From 4423bcf881520e288990f17c7472cb996a6fb565 Mon Sep 17 00:00:00 2001 From: David Khachaturov Date: Sat, 24 Apr 2021 19:15:53 +0100 Subject: [PATCH] - Add "DoNotRejoinJoycons" setting that allows you to use two joycons (or more) separately while in vertical mode --- BetterJoyForCemu/App.config | 4 ++++ BetterJoyForCemu/MainForm.cs | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/BetterJoyForCemu/App.config b/BetterJoyForCemu/App.config index d04ed55..9e6810e 100644 --- a/BetterJoyForCemu/App.config +++ b/BetterJoyForCemu/App.config @@ -122,6 +122,10 @@ + + + + diff --git a/BetterJoyForCemu/MainForm.cs b/BetterJoyForCemu/MainForm.cs index 145e178..f3bab4c 100644 --- a/BetterJoyForCemu/MainForm.cs +++ b/BetterJoyForCemu/MainForm.cs @@ -162,6 +162,8 @@ namespace BetterJoyForCemu { } } + bool doNotRejoin = Boolean.Parse(ConfigurationManager.AppSettings["DoNotRejoinJoycons"]); + public void conBtnClick(object sender, EventArgs e) { Button button = sender as Button; @@ -171,7 +173,7 @@ namespace BetterJoyForCemu { if (v.other == null && !v.isPro) { // needs connecting to other joycon (so messy omg) bool succ = false; - if (Program.mgr.j.Count == 1) { // when want to have a single joycon in vertical mode + if (Program.mgr.j.Count == 1 || doNotRejoin) { // when want to have a single joycon in vertical mode v.other = v; // hacky; implement check in Joycon.cs to account for this succ = true; } else {