Acfboy commented on issue #18566:
URL: https://github.com/apache/nuttx/issues/18566#issuecomment-4994912983

   > However, despite resolving several issues, two discovered problems are 
still under investigation. 
   > 1. When #define CONTROL 1 is enabled in mwdemo and input is tested in an 
edit box, backspace handling does not work correctly under QEMU.
   > 2. In the simulator (sim), after dragging a window, the mouse cursor jumps 
outside the screen and drags the window off-screen as well.
   
   I had a more detailed view on the two problem. For the first one, it turns 
out to be a classic issue involving DEL/BS, LR/CL, and ESC sequences. I'm now 
fixed this by parsing the esc sequences using `lib_meminstream` from the libc. 
However, the kbd situation in sim confuses me. In ·translate_x11_key·, when it 
reads `XK_Pause`, it directly returns `KEYCODE_PAUSE` from the enum 
`kbd_keycode_e`, but this value conflicts with the ASCII space character. In 
fact, this enumeration has many conflicts with the ASCII range. If I prioritize 
ASCII checking, some special keys won't be recognized; if I prioritize keycode 
checking, some ASCII characters won't be typed properly. Am I possibly 
misunderstanding this mechanism?
   
   For the second problem, as I mentioned in the draft PR, it appears to be 
caused by the coordinate values of touch points not being properly set when the 
`TOUCH_POS_VALID` flag is not set. So it seems I should check that flag in my 
driver. Initially, I didn't understand why the original design was done that 
way, so I modified `sim_touchscreen.c` as a workaround. I now realize it may be 
due to hardware-specific behavior on certain devices. As a result, I've moved 
the fix to mou_nuttx.c instead.
   
   Sorry for the long interruption in my work earlier. Now I'm back. Thank you 
for the reminder and your understanding—I will devote more energy to moving 
this project forward.  I will continue implementing the project, test it on 
real hardware, and submit it upstream to the mainline MW. I will also provide 
CMake build support and proper documentation.


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