Skip to content

mouse cursor support #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ardera opened this issue Jan 26, 2020 · 7 comments · Fixed by #72
Closed

mouse cursor support #29

ardera opened this issue Jan 26, 2020 · 7 comments · Fixed by #72
Labels
enhancement New feature or request

Comments

@ardera
Copy link
Owner

ardera commented Jan 26, 2020

  • wait for Raspberry Pi foundation to add hw cursor support to DRM, or
  • use the embedder API to add a new layer on top of flutter (also a composer), or
  • maybe there's some other way to get DRM to draw a cursor on top of the other planes, or
  • build a package for flutter that provides software cursor support
@ardera ardera added the enhancement New feature or request label Jan 26, 2020
@ardera
Copy link
Owner Author

ardera commented May 10, 2020

I thought about this for a while, but I'm not sure it's a wise choice to implement it.

The thing is, if I add mouse support, it will be without mouse acceleration and without any configuration options. So the mouse will feel kinda raw, and not at all like what you're used to on a normal Desktop.

That means mouse support would only be useful for debugging purposes. But since touchscreen input seems to work quite well right now, I doubt anyone needs mouse input for debugging purposes.

That's why I think it's not that useful right now.

But of course, I'm open to discussion about that.

@GioPan04
Copy link

Hi, in my opinion the mouse support is needed. How you said only for debugging purposes. For example, I don't have a touch screen display yet, and at the moment I'm stuck at the first screen because I can't interact with the app.

TL;DR
We need the mouse support

@vcrtech
Copy link

vcrtech commented May 20, 2020

Hi, in my opinion the mouse support is needed. How you said only for debugging purposes. For example, I don't have a touch screen display yet, and at the moment I'm stuck at the first screen because I can't interact with the app.

TL;DR
We need the mouse support

Agree. I'm currently investigating a borrowed RPI as a possible path forward on a project, but I'm not quite ready to make the investment on a touchscreen yet. Even if it's kind of nasty, basic mouse support would be nice to see how smooth/interactive flutter apps can be for those without touchscreens. Please consider it?

@ardera
Copy link
Owner Author

ardera commented May 24, 2020

Okay, that seems reasonable, I'll implement it when I have time

@CAoTx
Copy link

CAoTx commented Jul 16, 2020

Okay, that seems reasonable, I'll implement it when I have time

That would be really nice, Thanks!

This was referenced Aug 5, 2020
@ardera ardera closed this as completed in #72 Aug 5, 2020
@ondrej1024
Copy link

So just to make sure: is mouse control supported with the latest flutter_pi release? Anything that needs to be configured to enable it ?
It doesn't seem to work here.

@ardera
Copy link
Owner Author

ardera commented Oct 3, 2022

@ondrej1024 It only works when the GPU supports hardware mouse cursors. If they're not supported you should see some error messages in the flutter-pi output.

You can use a software mouse cursor though when hw is not supported: https://gist.github.com/ardera/e7ddf7c8e477d258a26dfa9c40002626

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants