Add simple keyboard handling for wayland.
This commit is contained in:
parent
e2cc98e1fb
commit
918c1d3046
8 changed files with 175 additions and 28 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue