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

   ## Summary
   
   input_gen_motion() interpolated positions from wall-clock time. If the
   task was preempted for longer than the gesture, it jumped to the release
   frame and dropped every MOVE in between, so a swipe looked like a tap.
   Advance a fixed 8 ms virtual clock per emitted frame instead.
   
   Also fill touch_point_s.timestamp from CLOCK_MONOTONIC; it was left
   unset before.
   
   The last commit only fixes an nxstyle issue.
   
   ## Impact
   
   - Only the input generator library (input_gen_event.c).
   - Under heavy preemption a gesture now takes longer in wall-clock time
   instead of losing frames.
   - No Kconfig, API, or documentation changes.
   
   ## Testing
   
   - Host: Ubuntu 22.04 x86_64, gcc 13.1.0; sim:nsh with
   CONFIG_GRAPHICS_INPUT_TOOL=y, events read with getevent.
   - input swipe 10 10 200 200 200: 25 MOVE + 1 UP with valid timestamps
   (before: 10 MOVE + 1 UP, timestamps uninitialized).
   - With the input task preempted for 500 ms during the same swipe:
     before, 3 MOVE then UP; after, all 25 MOVE then UP.
   - Every commit builds. The PR range passes checkpatch.sh -c -u -m -g;
   the first two commits alone still report existing nxstyle issues in
   input_gen_event.c, which the last commit fixes.
   - 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