Naga_KeypadMapper icon indicating copy to clipboard operation
Naga_KeypadMapper copied to clipboard

buttons 13 and 14 can't detect release

Open lostallmymoney opened this issue 5 years ago • 2 comments

if (ev2[1].type == 1 && ev2[1].value == 1) //Only extra buttons switch (ev2[1].code) { case 275: case 276: chooseAction(ev2[1].code - OFFSET, 1); break; // do nothing on default }

should be

if (ev2[1].type == 1) //Only extra buttons switch (ev2[1].code) { case 275: case 276: chooseAction(ev2[1].code - OFFSET, ev2[1].value); break; // do nothing on default }

The current version makes people unable to run things when releasing the 13th and 14th buttons. I also suggest "upgrading" to my version for an easier to edit code using classes ;)

lostallmymoney avatar Mar 12 '19 23:03 lostallmymoney

Someone should fix this

lostallmymoney avatar Mar 16 '19 16:03 lostallmymoney

I see, you can make a pull request with this change and I will merge it. If you dont feel like it I will do it. Thanks!

RaulPPelaez avatar Mar 25 '19 15:03 RaulPPelaez