]> git.mdlowis.com Git - proto/labwc.git/commit
input: move tablet axis members to tablet tool
authorJens Peters <jp7677@gmail.com>
Sun, 8 Jun 2025 06:27:25 +0000 (08:27 +0200)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sat, 14 Jun 2025 12:45:51 +0000 (13:45 +0100)
commit9cf9e129e1b7e117e255e53c5d98951823891cd8
treef824757e554a8b766bb1a533462457d322db008b
parentab9cf4dc9753630401662c1b5aced92b1f2edd05
input: move tablet axis members to tablet tool

It doesn't matter much since those are about the combination
of tablet and tablet tool. That said, this feels slightly more
natural.
As a consequence we always create a tablet tool and decide
indirectly via `tablet_get_coords()` and the returning surface
if mouse emulation should be used or not. Now we can also
add a `motion_mode` to the tablet tool which is slightly cleaner.
include/input/tablet-tool.h
include/input/tablet.h
src/input/tablet-tool.c
src/input/tablet.c