pelya / xserver-xsdl

XSDL - X.Org server ported to Android using SDL.
https://play.google.com/store/apps/details?id=x.org.server
Other
299 stars 55 forks source link

Mouse Wheel Scroll, Android 10 #130

Open locuturus opened 3 years ago

locuturus commented 3 years ago

Hi Pelya. I have a Pixel C running an Android 10 ROM and I find that left, right, and middle clicks are working fine. It also appears you have taken advantage of cursor capture? Very cool improvement. I cannot, however, scroll using the mouse wheel. Is this supposed to be working on the current app version?

Regards.

pelya commented 3 years ago

It was supposed to work. I'll check when I'll have a chance to take my Bluetooth mouse from my workplace, which I'm planning to visit somewhere around September.

Meanwhile, you can try the old version here: https://sourceforge.net/projects/libsdl-android/files/apk/XServer-XSDL/

On Sun, 26 Jul 2020, 01:42 David Babcock, notifications@github.com wrote:

Hi Pelya. I have a Pixel C running an Android 10 ROM and I find that left, right, and middle clicks are working fine. It also appears you have taken advantage of cursor capture? Very cool improvement. I cannot, however, scroll using the mouse wheel. Is this supposed to be working on the current app version?

Regards.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pelya/xserver-xsdl/issues/130, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABF5QHNU3BO35SDS6U3NE3R5NNW5ANCNFSM4PHVM2EQ .

curiousmitchell commented 3 years ago

Hey Pelya, I can confirm this is an issue on Android 10 with my Samsung Galaxy Note 10+. Awesome work though!!

I'm using samsung dex with a bluetooth mouse. Left, right, and middle click are all working, scroll is not. I'm using xfce on an archlinux build through Termux.

On initial install, I had the a white android cursor over the window, with the black linux cursor following along under it with a little lag. The scroll wheel worked fine then. I could also move the android cursor out of the window and click on other apps.

Now the cursor is entirely black (linux only), and restricted to the xsdl window only. Basically it is captured entirely. When this is the case, the mouse scroll no longer works. I can confirm this behaviour in the latest (50) build, 49, and 47.

I'm happy to help test as needed. It would be awesome to see the scroll wheel working when full cursor capture is enabled. It would also be really cool if it was possible to toggle mouse capture on or off (or it happened automatically). I'm thinking something similar to VirtualBox with Guest Additions (you can choose when the cursor is captured, or have it automatically happen, etc.).

I've been using my phone as a laptop replacement for awhile now, so for me the ability to move the cursor out of the xsdl window to interact with other apps is really useful - awesome that you've got the cursor capture working so well though.

Let me know if I can help with testing.

Cheers,

curiousmitchell commented 3 years ago

Well, mouse scroll is back - with the white android cursor over the black 'linux' one. I also have access to android apps from dex outside of the xsdl window. Seems very random as to when it comes back - when I minimise xsdl, switch apps to something on android, and then go back to xsdl, it seems a toss up whether I have the white android cursor or whether the cursor has been captured completely, and is confined within xsdl. Let me know how to troubleshoot. Thanks!

locuturus commented 3 years ago

I was thinking to myself that I was surprised middle click worked for you at all in DeX. Middle click isn't handled correctly within DeX for regular Android apps on either my S9 or Tab S6 so I assume cursor capture allows XSDL to pass it to Linux correctly?  When you have a double cursor, and scroll works for you, does middle click work as well?

Jul 31, 2020 22:50:36 curiousmitchell notifications@github.com:

Well, mouse scroll is back - with the white android cursor over the black 'linux' one. I also have access to android apps from dex outside of the xsdl window. Seems very random as to when it comes back - when I minimise xsdl, switch apps to something on android, and then go back to xsdl, it seems a toss up whether I have the white android cursor or whether the cursor has been captured completely, and is confined within xsdl. Let me know how to troubleshoot. Thanks!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub[https://github.com/pelya/xserver-xsdl/issues/130#issuecomment-667477250], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AET72VOGPBXLAF2JJTB5Z6DR6OUKVANCNFSM4PHVM2EQ]. [https://github.com/notifications/beacon/AET72VIBEQNHAKFDGFVRXADR6OUKVA5CNFSM4PHVM2E2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOE7EOKAQ.gif]

curiousmitchell commented 3 years ago

Good question. Haven't seen the double cursor again for awhile... hard to answer that. I'll let you know when it comes back...

curiousmitchell commented 3 years ago

Ok, I can confirm that middle click works fine with the double cursor, as does scroll. While mouse capture is uber-cool, as a work around I'd be happy to leave it as a double cursor. Would be cool to have some hotkey/keyboard toggle to switch between the two, though I'm unsure how to troubleshoot this. @pelya Let me know if there's anything I can do at my end to find the code for this, and what's happening.

curiousmitchell commented 3 years ago

On Android 10, with Samsung One UI 2.1 and dex, using the phone as a touchpad works great. No issue with mouse being totally captured in the xsdl window - can use it as a normal app and also use apps outside of xsdl at the same time. No scroll however - same as above issue with mouse scroll. Would be great to get this working,

logan001 commented 3 years ago

i use xsdl in desktop mode of my honor view 20. the scroll works if you don't alt+tab out of the xsdl. also i think you have to start xsdl and switch to termux(whatever) and wait for the 3 sec count and start your linux. thats how i can make scroll to work. but again don't alt+tab out of xsdl cause scroll will get disable

Ryushin commented 3 years ago

Just received my Thinkpad Trackpoint Keyboard II Bluetooth keyboard. All three mouse buttons work wonderfully when inside Dex. Scrolling does not work inside XSDL, but it does work with Android apps. Now if I could only figure out how to share the clipboard between Android and XDSL. Using this on the new Samsung Tab S7 Plus.

locuturus commented 3 years ago

You say all three buttons work inside DeX. Do you mean, for example, that middle clicking a link in Android Chrome opens the link in a background tab? This specifically does not work in DeX on my S9 and my Tab S6. The click accomplishes nothing on my devices. You have me wondering if a newer version of One UI or DeX has addressed this.

Ryushin commented 3 years ago

You say all three buttons work inside DeX. Do you mean, for example, that middle clicking a link in Android Chrome opens the link in a background tab? This specifically does not work in DeX on my S9 and my Tab S6. The click accomplishes nothing on my devices. You have me wondering if a newer version of One UI or DeX has addressed this.

I did surf a little bit in Firefox, and I think that did work. I what know did work for sure is in a shell, highlighting text with the left mouse button then pasting with the middle mouse button worked perfectly. I'll double check about the Firefox in a bit.

Ryushin commented 3 years ago

You say all three buttons work inside DeX. Do you mean, for example, that middle clicking a link in Android Chrome opens the link in a background tab? This specifically does not work in DeX on my S9 and my Tab S6. The click accomplishes nothing on my devices. You have me wondering if a newer version of One UI or DeX has addressed this.

I'm inside "Linux Deploy" and XSDL and everything the middle mouse button is working as it's expected to. Middle mouse click on links in Firefox opens them in a new tab. Copy paste is working as well. Except holding down the middle mouse button and trying to scroll does not work in XSDL.

Only other weird thing is the caps lock sometimes gets turned on, or reversed even typing mid-sentence. Sometimes I have to have caps lock in order to type lower case. I'll look in the Issues for this. Don't want to hijack the thread.

logan001 commented 3 years ago

in linux you can't drag/scroll the page by holding middle button. you can set some variable for firefox to work but its not working by default. as for chrome/chromium i have no clue if there is a solution for it. the mouse wheel scroll is not working in xsdl if you scroll the page by scrolling the wheel. for me it works until i alt+tab out of xsdl window (i'm using desktop mode of view 20 similar to DeX from samsung).

Ryushin commented 3 years ago

in linux you can't drag/scroll the page by holding middle button. you can set some variable for firefox to work but its not working by default. as for chrome/chromium i have no clue if there is a solution for it.

The Trackpoint scrolling works by holding down the middle mouse button and then pushing the Trackpoint up or down. I'm probably experiencing the same Issue in as everyone else. Scrolling works in Android but not in XSDL.

zanfix commented 3 years ago

I can confirm the "double mouse" issue/solution is present on my samsung s9+ with android 9 using dex

I can also say that the android "mouse hiding" feature has some king of bug... In some situations the white dex mouse will stick (not hide) from the xsdl window area. It may be fixed pressing Meta+DOWN (exiting full screen in dex) and then pressing Meta+UP (entering full screen). But does not always work!?

Regards