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

   ## Summary
   
   HID mouse class:
   
   - The whole configuration descriptor is passed to the class driver.  In a 
composite device (e.g. a keyboard + mouse receiver) only use the endpoints of 
the HID mouse interface instead of the first interrupt IN endpoint found.
   - Select the boot protocol with SET_PROTOCOL: the reports are decoded using 
the fixed boot format, but HID devices start in report protocol.
   
   - Fix nxstyle issues reported in the touched file.
   
   ## Impact
   
   Users will be able to use the driver with Logitech Mouse
   
   ## Testing
   
   Tested with max3421e and tc program reading from /dev/mouse0
   
   ```
   nsh> tc
   tc_main: nsamples: 0
   tc_main: Opening /dev/mouse0
   Sample     :
      buttons : 00
            x : 313
            y : 21
   Sample     :
      buttons : 00
            x : 320
            y : 9
   Sample     :                                                                 
     
      buttons : 00                                                              
     
            x : 318                                                             
     
            y : 26                                                              
     
   Sample     :                                                                 
     
      buttons : 00                                                              
     
            x : 316                                                             
     
            y : 47                                                              
     
   Sample     :                                                                 
     
      buttons : 00                                                              
     
            x : 315                                                             
     
            y : 65                                                              
     
   Sample     :                                                                 
     
      buttons : 00                                                              
     
            x : 314                                                             
     
            y : 87                                                              
     
   Sample     :                                                                 
     
      buttons : 00                                                              
     
            x : 314                                                             
     
            y : 100                                                             
     
   Sample     :                                                                 
     
      buttons : 00                                                              
     
            x : 315                                                             
     
            y : 120                                                             
     
   Sample     :                                                                 
     
      buttons : 00                                                              
     
            x : 319                                                             
     
            y : 136                                                             
     
   Sample     :                                                                 
     
      buttons : 00                                                              
     
            x : 320                                                             
     
            y : 155                                                             
     
   Sample     :                                                                 
     
      buttons : 00                                                              
     
            x : 320                                                             
     
            y : 169                                                             
     
   Sample     :                                                                 
     
      buttons : 00                                                              
     
            x : 320                                                             
     
            y : 187                                                             
     
   Sample     :                                                                 
     
      buttons : 00                                                              
     
            x : 320                                                             
     
            y : 200                                                             
     
   Sample     :                                                                 
     
      buttons : 00                                                              
     
            x : 320                                                             
     
            y : 216                                                             
     
   Sample     :                                                                 
     
      buttons : 00                                                              
     
            x : 320                                                             
     
            y : 234                                                             
     
   Sample     :                                                                 
     
      buttons : 00                                                              
     
            x : 320                                                             
     
            y : 218                                                             
     
   Sample     :                                                                 
     
      buttons : 00                                                              
     
            x : 320                                                             
     
            y : 201                                                             
     
   Sample     :                                                                 
     
      buttons : 00                                                              
     
            x : 320                                                             
     
            y : 187                                                             
     
   Sample     :                                                                 
     
      buttons : 00                                                              
     
            x : 320                                                             
     
            y : 170                                                             
     
   Sample     :                                                                 
     
      buttons : 00                                                              
     
            x : 320                                                             
     
            y : 157                                                             
     
   Sample     :                                                                 
     
      buttons : 00                                                              
     
            x : 308                                                             
     
            y : 152                                                             
     
   Sample     :                                                                 
     
      buttons : 02                                                              
     
            x : 297                                                             
     
            y : 158                                                             
     
   Sample     :                                                                 
     
      buttons : 00                                                              
     
            x : 297                                                             
     
            y : 159                                                             
     
   Sample     :                                                                 
     
      buttons : 01                                                              
     
            x : 297                                                             
     
            y : 159                                                             
     
   Sample     :                                                                 
     
      buttons : 00                                                              
     
            x : 297                                                             
     
            y : 159                                                             
     
   Sample     :                                                                 
     
      buttons : 04                                                              
     
            x : 297                                                             
     
            y : 159                                                             
     
   Sample     :                                                                 
     
      buttons : 00                                                              
     
            x : 297                                                             
     
            y : 159                                                             
     
   Sample     :                                                                 
     
      buttons : 01                                                              
     
            x : 297                                                             
     
            y : 159                                                             
     
   Sample     :                                                                 
     
      buttons : 00                                                              
     
            x : 297                                                             
     
            y : 159                                                             
     
   Sample     :                                                                 
     
      buttons : 02                                                              
     
            x : 297                                                             
     
            y : 159                                                             
     
   Sample     :                                                                 
     
      buttons : 00                                                              
     
            x : 297                                                             
     
            y : 159                                                             
     
   Sample     :                                                                 
     
      buttons : 01                                                              
     
            x : 297                                                             
     
            y : 159                                                             
     
   Sample     :                                                                 
     
      buttons : 00                                                              
     
            x : 297                                                             
     
            y : 159                                                             
     
   Sample     :                                                                 
     
      buttons : 00                                                              
     
            x : 283                                                             
     
            y : 151
   ```


-- 
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