xbmc
|
Receive events from all registered wl_seats and process them into Kodi events. More...
#include <SeatInputProcessing.h>
Public Member Functions | |
CSeatInputProcessing (wayland::surface_t const &inputSurface, IInputHandler &handler) | |
Construct a seat input processor. More... | |
void | AddSeat (CSeat *seat) |
void | RemoveSeat (CSeat *seat) |
void | SetCoordinateScale (std::int32_t scale) |
Set the scale the coordinates should be interpreted at. More... | |
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 |