break;\r
}\r
continue;\r
- case PBTN_MBACK: return;\r
+ case PBTN_MBACK:\r
+ return;\r
case PBTN_MOK:\r
if (sel >= opt_cnt)\r
return;\r
- while (in_menu_wait_any(30) & PBTN_MOK);\r
+ while (in_menu_wait_any(30) & PBTN_MOK)\r
+ ;\r
break;\r
case PBTN_MA2:\r
in_unbind_all(dev_id, opts[sel].mask << mask_shift, bindtype);\r
in_get_dev_info(dev_id, IN_INFO_DOES_COMBOS))\r
unbind = 0;\r
\r
- in_bind_key(dev_id, kc, opts[sel].mask << mask_shift, bindtype, unbind);\r
+ if (unbind)\r
+ in_unbind_all(dev_id, opts[sel].mask << mask_shift, bindtype);\r
+\r
+ in_bind_key(dev_id, kc, opts[sel].mask << mask_shift, bindtype, 0);\r
}\r
}\r
\r