extensions/RdkShellExtendedInput/source/rdkshellextendedinputmodule.cpp
/*

    Called from the WesterosClient object when an input event should be sent to
    the client.  We need to pass this on to the wayland server so that it can
    send the event to the clients, however wayland is not thread safe and it's
    running in a different thread, so we have to put the event into a pipe which
    will wake the wayland event loop and call onWaylandInputEventNotification(...).

 */
Called from the WesterosClient object when an input event should be sent to
the client.  We need to pass this on to the wayland server so that it can
send the event to the clients, however wayland is not thread safe and it's
running in a different thread, so we have to put the event into a pipe which
will wake the wayland event loop and call onWaylandInputEventNotification(...).
Called from the WesterosClient object when an input event should be sent to the client . We need to pass this on to the wayland server so that it can send the event to the clients however wayland is not thread safe and it ' s running in a different thread so we have to put the event into a pipe which will wake the wayland event loop and call onWaylandInputEventNotification ( ... ) .
void RdkShellExtendedInputModule::onWesterosInputEvent(const RdkShell::InputEvent &event)
{
    if (TEMP_FAILURE_RETRY(write(mNotifierPipeFd, &event, sizeof(event))) != sizeof(event))
    {
        RdkShell::Logger::log(RdkShell::LogLevel::Information,  "Error: failed to write to input event to pipe");
    }
}
void RdkShellExtendedInputModule :: onWesterosInputEvent ( const RdkShell :: InputEvent & event ) { if ( TEMP_FAILURE_RETRY ( write ( mNotifierPipeFd , & event , sizeof ( event ) ) ) != sizeof ( event ) ) { RdkShell :: Logger :: log ( RdkShell :: LogLevel :: Information , " " ) ; } }
Called from the WesterosClient object when an input event should be sent to
the client.
Called from the WesterosClient object when an input event should be sent to the client .