From a437474d6e113d8f15c39dce200f0647b957ac17 Mon Sep 17 00:00:00 2001 From: John Tsiombikas Date: Sat, 26 Mar 2022 15:04:18 +0200 Subject: [PATCH] use the new RAWBUTTON events for button press feedback --- src/ui.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ui.cc b/src/ui.cc index 31e1669..140cc2f 100644 --- a/src/ui.cc +++ b/src/ui.cc @@ -279,7 +279,7 @@ void MainWin::spnav_input() } break; - case SPNAV_EVENT_BUTTON: + case SPNAV_EVENT_RAWBUTTON: assert(ev.button.bnum < bnrow_count); lb = bnrow[ev.button.bnum].lb_bidx; @@ -460,10 +460,8 @@ void MainWin::rad_changed(bool active) } if(src == bnrow[i].rad_action) { if(active) { - printf("bnaction %d active\n", i); spnav_cfg_set_bnaction(i, cfg.bnact[i]); } else { - printf("bnaction %d off\n", i); spnav_cfg_set_bnaction(i, SPNAV_BNACT_NONE); } return;