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

   ## Summary
   
   Add input scroll <value> and input scroll --axis SCROLL,<value>. The
   command sends one activation report of threshold + 1, then splits the
   requested value into reports of max(1, |value| / 10), with the last
   report carrying any remainder, 30 ms apart. This drives applications
   that only start scrolling after a threshold. The existing wheel
   command is unchanged.
   
   Add input_gen_scroll() and GRAPHICS_INPUT_TOOL_SCROLL_THRESHOLD (default
   10, range 0..32766).
   
   ## Impact
   
   - New command, API and Kconfig option; existing commands unchanged.
   - The activation report is sent in addition to the requested value.
   - The axis name in --axis is not checked; only the number is used.
   - input_gen_scroll() converts interval_ms to microseconds, so callers
   must keep it below UINT32_MAX / 1000. The command always passes 30.
   
   ## Testing
   
   - Host: Ubuntu 22.04 x86_64, gcc 13.1.0; sim:nsh with 
CONFIG_GRAPHICS_INPUT_TOOL=y 
   and CONFIG_INPUT_MOUSE_WHEEL=y. Wheel reports were read from /dev/umouse
   with examples/touchscreen (tc, CONFIG_EXAMPLES_TOUCHSCREEN_MOUSE=y).
   - scroll 100 -> 11, then 10 x 10. scroll --axis SCROLL,-50 -> -11,
   then 10 x -5. scroll 0 sends nothing;`scroll abc` and `scroll 40000` 
   (outside int16_t) send no report and print the usage text.
   - Kconfig: 0 and 32766 are kept; 32767 and -1 fall back to 10.
   - checkpatch.sh -c -u -m -g: pass.
   - No hardware testing performed.


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