这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@Dr4kzor
Copy link
Contributor

@Dr4kzor Dr4kzor commented Jun 21, 2023

Now stylus works, stylus hover and touch work, added ability to select between left right or middle click, this does not affect any input other than stylus meaning you can still use your fingers or mouse for left click while the stylus is on right click only mode

…t,right or middle. This does not affect any input other than stylus meaning you can still use your fingers for left click while the stylus is on right click only mode



findPreference("displayScale").setVisible(true);
Copy link
Contributor

@ask9027 ask9027 Jun 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should remove?
while display resolution native
Screenshot_2023-06-21-10-58-42-144_com termux x11-edit

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi I fixed the commit removing that unwanted change, not sure how it got there.

@parkerlreed
Copy link

parkerlreed commented Jun 21, 2023

Tested on Samsung Tab S8+ on Android 13

Installed main apk, shell loader apk, and the updated termux-x11-nightly deb in Termux

Launched with

termux-x11 :1

New session

export DISPLAY=:1
dbus-launch --exit-with-session startxfce4

Everything works and displays to Termux-X11 but going to the notification dropdown and hitting Preferences crashes the application.

Touch is working as trackpad and stylus is controlling the mouse directly, however the stylus does not show up as a stylus to X11. GIMP input devices only shows Core Pointer.

@twaik
Copy link
Member

twaik commented Jun 21, 2023

Touch is working as trackpad and stylus is controlling the mouse directly, however the stylus does not show up as a stylus to X11. GIMP input devices only shows Core Pointer.

It can not show up as as stylus to X11, his code sends mouse events to server.

I was looking for pure stylus X11 driver (to lend some code) but did not find it. Libinput code is not clear enough to understand it, wacom is for tablets and not for stylus-only devices.

@parkerlreed
Copy link

OH so this just added back the stylus working as a mouse with some extra preferences. Thanks for the clarification!

Excited to see if this can be expanded for pressure in the future.

@twaik
Copy link
Member

twaik commented Jun 21, 2023

I did not implement stylus support intentionally. Removing stylus support was not intentional too.

@twaik
Copy link
Member

twaik commented Jul 16, 2023

Why did you put stylus handling code to hardware mouse handler?

@twaik twaik merged commit f6db61a into termux:master Jul 16, 2023
@parkerlreed
Copy link

Figured out what the preferences crash was, just had to reset the application data and that is working again.

Stylus tap does whatever the configured action is, but is not moving the mouse within the session.

@parkerlreed
Copy link

Stylus input is only working with touch screen input mode set to emulated touch screen.

Direct touch which is what I prefer for the finger, does not allow the stylus to work.

@twaik
Copy link
Member

twaik commented Jul 26, 2023

Currently I do not have stylus-enabled device for testing. Can you please test clicking with stylus? I read the code and think that it allows to click but do not allow to move cursor in direct touch mode.

@Dr4kzor
Copy link
Contributor Author

Dr4kzor commented Jul 26, 2023

I sadly don't have time atm to edit this, and I can confirm that the current code version does not work with direct input mode, also the menu auto closing after choosing what click type to use is not user friendly (cannot use a finger and stylus at the same time to change modes comfortably). Also my stylus btns don't work so I cannot test if these are cycling between click types.
As soon as I have time I will look into this.

@twaik
Copy link
Member

twaik commented Jul 26, 2023

aae940c should fix cursor moving. I've implemented right button click with S Pen (you should press stylusbutton before click to make it produce right click). But I do not know if it works with other devices.

@parkerlreed
Copy link

aae940c should fix cursor moving. I've implemented right button click with S Pen (you should press stylusbutton before click to make it produce right click). But I do not know if it works with other devices.

Indeed it does! Direct touch stylus and the right click when button held is working great. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants