Re: New type of input idea: an action button

2025-07-11 Thread Tomek CEDRO
Very cool thank you Alan :-) On Sat, Jul 12, 2025 at 12:57 AM Alan C. Assis wrote: > > Hi Tomek, > > I agree with you, but in this first "incarnation" it will support only two > actions, but people are invited to improve it later. > > Notice that I used INPUT_SBUTTON, so the "Dual Action" is just

Re: New type of input idea: an action button

2025-07-11 Thread Alan C. Assis
Hi Tomek, I agree with you, but in this first "incarnation" it will support only two actions, but people are invited to improve it later. Notice that I used INPUT_SBUTTON, so the "Dual Action" is just a Kconfig message, easy to change. :-) Now my idea is just to add the improvements that Michał

Re: New type of input idea: an action button

2025-07-11 Thread Tomek CEDRO
Very cool thanks Alan! :-) I think there may be more actions with one button: 1. single click. 2. double click. 3. triple click. 4. short press. 5. long press. etc So it is not only dual action button, there may be more actions :-) It would be great if the driver could return event code or have

Re: New type of input idea: an action button

2025-07-11 Thread Alan C. Assis
Hi Everyone, The driver is done: https://github.com/apache/nuttx/pull/16714 I started using drivers/input/spq10kbd.c as reference, but then I realized that there was already a keyboard_upper.c that I could use to send key events/strokes. After that the driver was easier to implement than I thoug