Conversation
96dbc62 to
3d2703c
Compare
Collaborator
Author
|
@MacSlow, if you have time to review or test it? For testing you will need:
I prefer to not enable mouse support by default, as it's a bit experimental. The main differences with your implementations:
|
|
Keep in mind that we'd probably want this enabled in Fedora since there would be no other way to have mouse support. |
Collaborator
Author
gpm or consolation are not enabled by default in Fedora. |
13 tasks
4b6f2e4 to
acceb9e
Compare
added 7 commits
November 21, 2025 14:14
Prepare work to support other input devices like mouse, touchpad... Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
This prepare the work to have a different hook for pointer events Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
In gltex_draw(), add gl_x1, gl_x2, gl_y1, gl_y2, to store vertex coordinate. This is cosmetic and should have no impacts. Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
This allows to draw a mouse pointer at specific location Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
acceb9e to
ea502a7
Compare
added 10 commits
November 24, 2025 15:05
Start support for standard mouse, using relative EV_REL events Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
input_pointer needs to know the screen size in pixel, and make the pointer stay within the screen boundaries. Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
Touchpad and mouse in VM, use absolute coordinate, with EV_ABS. Touchpad is a bit special because it's smaller than the screen, so you need to slide multiple time to go from one edge to the other. Handle double tap and triple tap as paste, to make it easy to copy/ paste with a touchpad. This is very basic, and doesn't include all the quirks from libinput, but I hope it works in most cases. Touchscreen may work, but I don't feel it's needed to support it in kmscon, as you will need gesture/onscreen keyboard to make it useful.
Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
Mouse support is still experimental, so it's disabled by default. Also update the man page accordingly
As the mouse pointer is not really transparent, it's better to hide it when it's not in use.
Select a word by double left click on it. It requires libtsm >= 4.3.0 to call tsm_screen_selection_word() Only handle double click for mouse left button as a first implementation Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
Handle the case where the screen is not used, and its width and height are set to 0. Suggested-by: Geo Carncross <geocar@gmail.com> Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
ea502a7 to
e78393b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add support for mouse / touchpad / virtual mouse on VM.
It is based on my rotation support PR #147
Basic mouse support
Touchpad support
Virtual mouse support with absolute coordinate
Select/Copy/Paste
Scroll with the wheel
Hide mouse pointer when not used
gltex renderer
pixman renderer
bbulk renderer
bblit renderer
Fix #54