mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-30 10:38:55 +00:00
genode_c_api/event: absolute-motion events
Absolute motion events are generated by "tablet" devices, e.g., Qemu usb-tablet and IP-KVM appliances like PiKVM. Issue #5105
This commit is contained in:
parent
5f2691a65b
commit
a0e0000108
@ -73,6 +73,8 @@ struct genode_event_submit
|
|||||||
|
|
||||||
void (*rel_motion) (struct genode_event_submit *, int x, int y);
|
void (*rel_motion) (struct genode_event_submit *, int x, int y);
|
||||||
|
|
||||||
|
void (*abs_motion) (struct genode_event_submit *, int x, int y);
|
||||||
|
|
||||||
void (*touch) (struct genode_event_submit *,
|
void (*touch) (struct genode_event_submit *,
|
||||||
struct genode_event_touch_args const *);
|
struct genode_event_touch_args const *);
|
||||||
|
|
||||||
|
@ -102,6 +102,12 @@ namespace {
|
|||||||
batch.submit(Input::Relative_motion { x, y }); });
|
batch.submit(Input::Relative_motion { x, y }); });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void _abs_motion(struct genode_event_submit *myself, int x, int y)
|
||||||
|
{
|
||||||
|
_with_batch(myself, [&] (Event::Session_client::Batch &batch) {
|
||||||
|
batch.submit(Input::Absolute_motion { x, y }); });
|
||||||
|
}
|
||||||
|
|
||||||
static void _touch(struct genode_event_submit *myself,
|
static void _touch(struct genode_event_submit *myself,
|
||||||
struct genode_event_touch_args const *args)
|
struct genode_event_touch_args const *args)
|
||||||
{
|
{
|
||||||
@ -133,6 +139,7 @@ namespace {
|
|||||||
press = _press;
|
press = _press;
|
||||||
release = _release;
|
release = _release;
|
||||||
rel_motion = _rel_motion;
|
rel_motion = _rel_motion;
|
||||||
|
abs_motion = _abs_motion;
|
||||||
touch = _touch;
|
touch = _touch;
|
||||||
touch_release = _touch_release;
|
touch_release = _touch_release;
|
||||||
wheel = _wheel;
|
wheel = _wheel;
|
||||||
|
Loading…
Reference in New Issue
Block a user