Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <SeatInputProcessing.h>
Public Member Functions | |
virtual void | OnEvent (InputType type, XBMC_Event &event) |
virtual void | OnEnter (InputType type) |
virtual void | OnLeave (InputType type) |
virtual void | OnSetCursor (std::uint32_t seatGlobalName, std::uint32_t serial) |
virtual | ~IInputHandler ()=default |
Handler interface for input events from CSeatInputProcessor
|
virtualdefault |
Handle focus enter
type | input device type for which the surface has gained the focus |
|
inlinevirtual |
Handle input event
type | input device type that caused the event |
event | XBMC event data |
Handle focus leave
type | input device type for which the surface has lost the focus |
|
inlinevirtual |
Handle request for setting the cursor
When the client gains pointer focus for a surface, a cursor image must be attached to the pointer. Otherwise the previous pointer image would be used.
This request is sent in addition to OnEnter for InputType::POINTER.
seatGlobalName | numeric Wayland global name of the seat the event occurred on |
pointer | pointer instance that needs its cursor set |
serial | Wayland protocol message serial that must be sent back in set_cursor |