The motion device interface. More...

#include "murl_i_motion.h"

Inherited by Murl::Input::MotionDevice.

Public Types

enum  EventAction { EVENT_ACTION_NONE, EVENT_ACTION_MOTION_BEGIN, EVENT_ACTION_MOTION_END, EVENT_ACTION_CANCEL }
 Definition of event actions. More...
 

Public Member Functions

virtual void PostEvent (EventAction action)=0
 Post the current motion state. More...
 

Detailed Description

The motion device interface.

Used by the platform to post events to the device.

Member Enumeration Documentation

◆ EventAction

Definition of event actions.

Enumerator
EVENT_ACTION_NONE 

No action.

EVENT_ACTION_MOTION_BEGIN 

Motion has begun.

EVENT_ACTION_MOTION_END 

Motion has ended.

EVENT_ACTION_CANCEL 

Motion is cancelled, e.g.

cancelled by IOS if shaking too long.

Member Function Documentation

◆ PostEvent()

virtual void Murl::IMotion::PostEvent ( EventAction  action)
pure virtual

Post the current motion state.

Parameters
actionThe event action, see enum EventAction.

The documentation for this interface was generated from the following file:
  • murl_i_motion.h


Copyright © 2011-2018 Spraylight GmbH.