ardera / flutter-pi

A light-weight Flutter Engine Embedder for Linux Embedded that runs without X11 or Wayland.
MIT License
1.62k stars 162 forks source link

Mouse Only Moves on Half the Screen with flutter-pi Rotated 90 Degrees #428

Open Freancy opened 4 months ago

Freancy commented 4 months ago

Description

When using flutter-pi --rotate 90 , the mouse cursor is restricted to moving only on half of the screen. This issue limits the usability of the mouse input in the rotated orientation.

Steps to Reproduce:

Connect raspberry through HDMI to external monitor. Run flutter app with flutter-pi --rotate 90 --release flutter_assets Attempt to move the mouse cursor across the entire screen. Expected Behavior: The mouse cursor should be able to move across the entire screen area, regardless of the display rotation.

Observed Behavior:

The mouse cursor only moves within half of the screen, leaving the other half inaccessible.

Environment:

flutter-pi version: 1.0.0 Hardware: RaspberryPi4

Jayrajghoniya commented 1 month ago

I am also having the same issue! After rotating in portrait mode the mouse behaviour is still like a landspace cause the input matrix doesn't changes as the screen rotates... I thinks it is because of the lack of GUI support for do such thing on without desktop lite os rpi.

Jayrajghoniya commented 3 weeks ago

I've tried also tried on legacy OS but still facing the same issue. I've tried hard and also search on google but found nothing on this please help me on this.

Jayrajghoniya commented 3 weeks ago

I've tried flutter pi on rpi os 64 bit with desktop environments and use xrandr to rotate display and works fine on it by on rpi os 64 bit lite with no desktop the issue is still there editing config.txt, cmdline.txt, using system.setpreferedorientation from flutter nothing works but by explicit rotate using flutter-pi -o portrait_up it rotates but the mouse are is being limited to half and also even in the half of the region of the cursor is on the button but it's not actually there so after clicking on it the button don't work.