diff --git a/examples/complex_switch_panel.ino b/examples/complex_switch_panel.ino index 74acc96..8fbead6 100644 --- a/examples/complex_switch_panel.ino +++ b/examples/complex_switch_panel.ino @@ -14,7 +14,7 @@ void setup() { joystick.AddButton(2, BUTTON_PULSED_DOUBLE_ACTION); joystick.AddButton(3, BUTTON_PULSED_DOUBLE_ACTION); joystick.AddButton(4, BUTTON_PULSED_DOUBLE_ACTION); - joystick.AddButton(5, BUTTON_MAINTAINED); + joystick.AddButton(5, BUTTON_LATCHED); joystick.AddButton(6, BUTTON_PULSED); }