File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -303,5 +303,6 @@ class DataProcessing {
303303 emgSettings. values. process(dataProcessingFilteredBuffer);
304304 w_focus. updateFocusWidgetData();
305305 w_bandPower. updateBandPowerWidgetData();
306+ w_emgJoystick. updateEmgJoystickWidgetData();
306307 }
307308}
Original file line number Diff line number Diff line change @@ -101,8 +101,6 @@ class W_EMGJoystick extends Widget {
101101
102102 public void update (){
103103 super . update(); // calls the parent update() method of Widget (DON'T REMOVE)
104-
105- updateJoystickInput();
106104 }
107105
108106 public void draw (){
@@ -205,7 +203,8 @@ class W_EMGJoystick extends Widget {
205203 }
206204
207205 // This is the core method that updates the joystick input
208- private void updateJoystickInput () {
206+ // Call this method in DataProcessing.pde to update the joystick input even when widget is closed
207+ public void updateEmgJoystickWidgetData () {
209208 previousJoystickRawX = joystickRawX;
210209 previousJoystickRawY = joystickRawY;
211210
You can’t perform that action at this time.
0 commit comments