mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-18 02:40:08 +00:00
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;
|
||||
};
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user