Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <SeatInputProcessing.h>
Public Member Functions | |
CSeatInputProcessing (wayland::surface_t const &inputSurface, IInputHandler &handler) | |
void | AddSeat (CSeat *seat) |
void | RemoveSeat (CSeat *seat) |
void | SetCoordinateScale (std::int32_t scale) |
Public Member Functions inherited from KODI::WINDOWING::WAYLAND::IInputHandlerPointer | |
Public Member Functions inherited from KODI::WINDOWING::WAYLAND::IInputHandlerKeyboard | |
virtual | ~IInputHandlerKeyboard ()=default |
Additional Inherited Members | |
Protected Member Functions inherited from KODI::WINDOWING::WAYLAND::IInputHandlerPointer | |
~IInputHandlerPointer ()=default | |
Receive events from all registered wl_seats and process them into Kodi events
Multi-seat support is not currently implemented completely, but each seat has separate state.
CSeatInputProcessing::CSeatInputProcessing | ( | wayland::surface_t const & | inputSurface, |
IInputHandler & | handler ) |
Construct a seat input processor
inputSurface | Surface that events should be processed on (all other surfaces are ignored) |
handler | Mandatory handler for processed input events |
void CSeatInputProcessing::SetCoordinateScale | ( | std::int32_t | scale | ) |
Set the scale the coordinates should be interpreted at
Wayland input events are always in surface coordinates, but Kodi only uses buffer coordinates internally. Use this function to set the scaling factor between the two and multiply the surface coordinates accordingly for Kodi events.
scale | new buffer-to-surface pixel ratio |