From 3445c79f23abcbf423699a0656d0952332ed0b7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikael=20Degerf=C3=A4lt?= Date: Sun, 23 Jun 2019 10:38:10 +0200 Subject: [PATCH] Press buttons 1-7 for valves and trills and left index input Also moved bug workaround code to be in the same function for simpler removal at later stage. --- simulation/src/nuevisim.cpp | 50 +++++++++++++++++++------------------ 1 file changed, 26 insertions(+), 24 deletions(-) diff --git a/simulation/src/nuevisim.cpp b/simulation/src/nuevisim.cpp index 8982c7c..7a09bd0 100644 --- a/simulation/src/nuevisim.cpp +++ b/simulation/src/nuevisim.cpp @@ -288,20 +288,6 @@ static void doGlobalsWindow() // int vibThrLo; // int vibZero; -// // Key variables, TRUE (1) for pressed, FALSE (0) for not pressed -// byte K1; // Valve 1 (pitch change -2) -// byte K2; // Valve 2 (pitch change -1) -// byte K3; // Valve 3 (pitch change -3) -// byte K4; // Left Hand index finger (pitch change -5) -// byte K5; // Trill key 1 (pitch change +2) -// byte K6; // Trill key 2 (pitch change +1) -// byte K7; // Trill key 3 (pitch change +4) - -// byte halfPitchBendKey; -// byte specialKey; -// byte pinkyKey; - - } ImGui::End(); @@ -438,6 +424,14 @@ static void SimLoop(std::function continue_predicate, std::function continue_predicate, std::function continue_predicate, std::function bool { return true; }, loop ); SimQuit(); return 0; @@ -567,11 +574,6 @@ static int SimInit() touchSensor.mockFilteredData(i, 4095); } - - // Dummy to always force full reset of EEPROM, to circumvent bug in NuEVI.ino - digitalInputs[mPin] = 0; - digitalInputs[ePin] = 0; - return result; }