-
-
Notifications
You must be signed in to change notification settings - Fork 157
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
Segfault when pressing any keyboard key #28
Comments
Yeah sorry, forgot to initialize a variable to zero. |
OK, now |
mouse support is working, mouse cursor support not 😅 The DRM implementation of the Raspberry Pi doesn't yet support (hardware) mouse cursors. It's of course possible to build a workaround, but that requires some fundamental changes to the way flutter-pi works right now. Flutter-pi is really simple right now. There's only one layer (flutter) that's being redrawn whenever it needs to. To add mouse cursor support, you'd need to introduce a new layer, and also a composer to interleave those two. Interleaving those two would of course be trivial, but the composer is not thaat trivial, since the composer API provided by the flutter engine also needs to support very complicated ways of interleaving platform contents with flutter contents. Haven't looked into it that much though. Could be that there is an easier workaround too. I've seen this a low-prio in the past & actually my plan up until now was to wait until the Raspberry Pi team adds hardware cursor support. I though noone would really use flutter with a mouse 😄 btw my method of verifying that mouse support works was by adding |
I understand that this is something that isn't trivial. I actually only need mouse pointer for testing. My main goal is to use Nevertheless, I'm guessing that tapping on the TextField and typing from keyboard will also not work, since keyboard is still connected to text terminal. |
Keyboard Input will not work, because of #22.
text terminal and application are the same entity in that respect, so you can't "disconnect" a keyboard from a terminal and "connect" it to an application. |
When running my app on
flutter-pi
commite8f86132
pressing any keyboard key result in segfault error and application crash.Within my app I don't have any text input fields. I've discovered this because wanted to switch back to text console.
What I also noticed is that mouse doesn't work. Both keyboard and mouse are connected to rpi at the same time (occupying 2 out of 4 USB ports). But now of them work.
Here is the output from running
flutter-pi
The text was updated successfully, but these errors were encountered: