Add simple keyboard handling for wayland.

This commit is contained in:
James Grogan 2022-11-10 16:29:59 +00:00
parent e2cc98e1fb
commit 918c1d3046
8 changed files with 175 additions and 28 deletions

View file

@ -22,6 +22,11 @@ static void wl_pointer_axis_discrete(void *data, struct wl_pointer *wl_pointer,
}
WaylandPointerInterface::~WaylandPointerInterface()
{
wl_pointer_release(mPointer);
}
void WaylandPointerInterface::pointerFrameEvent(void *data, struct wl_pointer *wl_pointer)
{
auto thisClass = static_cast<WaylandPointerInterface*>(data);
@ -122,8 +127,3 @@ WaylandPointerInterface::WaylandPointerInterface(wl_pointer* pointer)
wl_pointer_add_listener(mPointer, &mPointerListener, this);
}
wl_pointer* WaylandPointerInterface::getPointer() const
{
return mPointer;
}