mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 20:42:56 +01:00
committed by
Christian Helmuth
parent
c5a55e5af4
commit
f9e70b0300
@@ -77,6 +77,8 @@ struct genode_event_submit
|
||||
struct genode_event_touch_args const *);
|
||||
|
||||
void (*touch_release) (struct genode_event_submit *, unsigned finger);
|
||||
|
||||
void (*wheel) (struct genode_event_submit *, int x, int y);
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -109,6 +109,12 @@ namespace {
|
||||
batch.submit(Input::Touch_release { id }); });
|
||||
}
|
||||
|
||||
static void _wheel(struct genode_event_submit *myself, int x, int y)
|
||||
{
|
||||
_with_batch(myself, [&] (Event::Session_client::Batch &batch) {
|
||||
batch.submit(Input::Wheel { x, y }); });
|
||||
}
|
||||
|
||||
Submit(Event::Session_client::Batch &batch)
|
||||
:
|
||||
batch(batch)
|
||||
@@ -118,6 +124,7 @@ namespace {
|
||||
rel_motion = _rel_motion;
|
||||
touch = _touch;
|
||||
touch_release = _touch_release;
|
||||
wheel = _wheel;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user