acassis opened a new pull request, #3911:
URL: https://github.com/apache/nuttx-apps/pull/3911

   ## Summary
   
   Add an example that reads a USB HID keyboard and a USB HID mouse at the same 
time from a single task using poll().  It is meant to test devices that expose 
both a keyboard and a mouse, like the wireless keyboard + touchpad receivers, 
and uses less memory than running hidkbd and tc side by side, which matters on 
small boards (e.g. stm32f103-minimum).
   
   ## Impact
   
   Users will be able to use a HID keyboard with mouse/touchpad on NuttX.
   
   ## Testing
   
   ```
   nsh> hidcombo                                                                
     
   hidcombo: waiting for 40 events from /dev/kbda and /dev/mouse0               
     
   MOUSE buttons=00 x=140 y=120                                                 
     
   MOUSE buttons=00 x=120 y=122                                                 
     
   MOUSE buttons=00 x=98 y=125                                                  
     
   MOUSE buttons=00 x=70 y=141                                                  
     
   MOUSE buttons=00 x=43 y=165                                                  
     
   MOUSE buttons=00 x=14 y=189                                                  
     
   MOUSE buttons=00 x=0 y=212                                                   
     
   MOUSE buttons=00 x=0 y=233                                                   
     
   MOUSE buttons=00 x=13 y=240                                                  
     
   MOUSE buttons=00 x=34 y=240                                                  
     
   MOUSE buttons=00 x=57 y=240                                                  
     
   MOUSE buttons=00 x=89 y=238                                                  
     
   MOUSE buttons=00 x=120 y=223                                                 
     
   MOUSE buttons=00 x=146 y=198                                                 
     
   MOUSE buttons=00 x=168 y=168                                                 
     
   MOUSE buttons=00 x=182 y=138                                                 
     
   MOUSE buttons=00 x=185 y=101                                                 
     
   MOUSE buttons=00 x=181 y=66                                                  
     
   MOUSE buttons=00 x=172 y=42                                                  
     
   MOUSE buttons=00 x=161 y=24                                                  
     
   MOUSE buttons=00 x=148 y=13                                                  
     
   MOUSE buttons=00 x=135 y=5                                                   
     
   MOUSE buttons=00 x=123 y=0                                                   
     
   MOUSE buttons=00 x=105 y=0                                                   
     
   KEY   press           code=0x61 'a'                                          
     
   KEY   release         code=0x61 'a'                                          
     
   KEY   press           code=0x69 'i'                                          
     
   KEY   release         code=0x69 'i'                                          
     
   KEY   press           code=0x73 's'                                          
     
   KEY   release         code=0x73 's'                                          
     
   KEY   press           code=0x6a 'j'                                          
     
   KEY   press           code=0x6b 'k'                                          
     
   KEY   release         code=0x6a 'j'                                          
     
   KEY   release         code=0x6b 'k'                                          
     
   KEY   press           code=0x6c 'l'                                          
     
   KEY   release         code=0x6c 'l'                                          
     
   KEY   press           code=0x49 'I'                                          
     
   KEY   release         code=0x49 'I'                                          
     
   KEY   press           code=0x5a 'Z'                                          
     
   KEY   release         code=0x5a 'Z'                                          
     
   hidcombo: 16 key events, 24 mouse events
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to