Skip to content
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

Add a configuration option to set a tablet as a relative input #4139

Closed
Eragonfr opened this issue May 10, 2019 · 3 comments · Fixed by #5472
Closed

Add a configuration option to set a tablet as a relative input #4139

Eragonfr opened this issue May 10, 2019 · 3 comments · Fixed by #5472
Labels
enhancement New feature or incremental improvement input/tablet

Comments

@Eragonfr
Copy link

I have a Wacom intuos M Bluetooth, and i like using it as a relative input.
I haven't view any sway configuration option to set that.
It's possible to add that into sway ? Or into wlroots ?

@ascent12
Copy link
Member

libinput does give us relative coordinates for tablet events, but sway isn't hooked up to use it.

https://github.com/swaywm/sway/blob/master/sway/input/cursor.c#L440-L469
(struct wlr_event_tablet_tool_axis has that dx and dy as a member).

I'll admit that the input code would be the part I'm the least familiar with, but I don't think it would be that hard for someone to add support for that.

@emersion emersion added the enhancement New feature or incremental improvement label May 11, 2019
@Eragonfr
Copy link
Author

Progress with the issue #2288 ?

@Eragonfr
Copy link
Author

I'm not a good dev, and I don't know how i can add my modification in a good way. I want to add an option similar to option "Mode Relative"(from X libinput configuration) into main sway configuration file; so users can choose between relative and absolute input.
Do you have any idea how I can create that ?

Xyene added a commit to Xyene/sway that referenced this issue Jun 19, 2020
Xyene added a commit to Xyene/sway that referenced this issue Jun 19, 2020
Xyene added a commit to Xyene/sway that referenced this issue Jun 19, 2020
Xyene added a commit to Xyene/sway that referenced this issue Jun 19, 2020
Xyene added a commit to Xyene/sway that referenced this issue Jun 19, 2020
Xyene added a commit to Xyene/sway that referenced this issue Jun 19, 2020
Xyene added a commit to Xyene/sway that referenced this issue Jun 19, 2020
Xyene added a commit to Xyene/sway that referenced this issue Jun 19, 2020
Xyene added a commit to Xyene/sway that referenced this issue Jun 19, 2020
Xyene added a commit to Xyene/sway that referenced this issue Jun 19, 2020
Xyene added a commit to Xyene/sway that referenced this issue Jun 19, 2020
Xyene added a commit to Xyene/sway that referenced this issue Jun 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or incremental improvement input/tablet
Development

Successfully merging a pull request may close this issue.

4 participants