Mir
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | List of all members
mir::input::InputDispatcher Class Referenceabstract

The InputDispatchers role is to decide what should happen with user input events. More...

#include <input_dispatcher.h>

Inheritance diagram for mir::input::InputDispatcher:
[legend]

Public Member Functions

virtual void configuration_changed (nsecs_t when)=0
 Called when the device configuration changed. More...
 
virtual void device_reset (int32_t device_id, nsecs_t when)=0
 Called when the device device_id was added removed or was reset. More...
 
virtual void dispatch (MirEvent const &event)=0
 
virtual void start ()=0
 
virtual void stop ()=0
 
virtual ~InputDispatcher ()=default
 

Detailed Description

The InputDispatchers role is to decide what should happen with user input events.

It will receive MirEvents with either MirMotionEvent or MirKeyEvent inside. The InputDispatcher implementation shall either handle the input without informing any clients or pick a client surface and send the event to it.

Constructor & Destructor Documentation

virtual mir::input::InputDispatcher::~InputDispatcher ( )
virtualdefault

Member Function Documentation

virtual void mir::input::InputDispatcher::configuration_changed ( nsecs_t  when)
pure virtual

Called when the device configuration changed.

Implemented in mir::input::android::AndroidInputDispatcher, and mir::input::NullInputDispatcher.

virtual void mir::input::InputDispatcher::device_reset ( int32_t  device_id,
nsecs_t  when 
)
pure virtual

Called when the device device_id was added removed or was reset.

Implemented in mir::input::android::AndroidInputDispatcher, and mir::input::NullInputDispatcher.

virtual void mir::input::InputDispatcher::dispatch ( MirEvent const &  event)
pure virtual
virtual void mir::input::InputDispatcher::start ( )
pure virtual
virtual void mir::input::InputDispatcher::stop ( )
pure virtual

The documentation for this class was generated from the following file:

Copyright © 2012,2013 Canonical Ltd.
Generated on Fri Oct 10 14:07:14 UTC 2014