Hi Paolo,
Quote:
in the vim documentation/settings there are the choice to support the mouse with the touch you already gave us the tap to move the cursor in the four directions
do you think it's possible to handle the touch like a mouse so? for instance, if I've to go to the center of the screen to edit the file, I can just tap over the point where I want to start editing
|
I've been thinking about that. The tapping for moving in the four direction was simple to implement since all you have to do is send the keycode for one of the arrow keys to vim. Getting the touch screen to work in a mouse-like fashion is a bit more difficult since it might require further modifications to vim itself. While it looks possible in principle via the sysmouse handling I haven't spend enough time yet thinking properly about it. Perhaps it's even simpler than I assumed at first (it looks a bit as if vim's own reaction to a mouse click is also just stuffings some data into it's own input buffer, which could be simple to emulate). In any case it's definitely something to consider for a new version!
Another question would be how to deal with the different mouse buttons, marking regions etc. - when we start down that road it would be nice if it could be done properly;-)
Best regards, Jens