Skip to content

Commit ffd88d7

Browse files
Ernesto VoltaggioErnesto Voltaggio
Ernesto Voltaggio
authored and
Ernesto Voltaggio
committed
added joystick click as input to switch joints - same as enter button
1 parent c4cdd94 commit ffd88d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/Controlling_Manually_Braccio/Controlling_Manually_Braccio.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ static void eventHandlerDirectional(lv_event_t * e) {
146146
if (code == LV_EVENT_KEY){
147147
pressed_key = Braccio.getKey();
148148

149-
if (pressed_key == ENTER){
149+
if (pressed_key == ENTER || pressed_key == CLICK){
150150
state++; // Index the next joints in the states enum array
151151

152152
if (state > PINCH){

0 commit comments

Comments
 (0)