Murl::Input::ITouchScreenDevice Interface Referenceabstract

The ITouchScreenDevice interface. More...

#include "murl_input_i_touch_screen_device.h"

Inheritance diagram for Murl::Input::ITouchScreenDevice:

Public Member Functions

virtual Bool IsPressed () const =0
 Check if the touch is pressed. More...
 
virtual Bool WasCancelled () const =0
 Check if the touch was cancelled in the most recent tick. More...
 
virtual Bool WasPressed () const =0
 Check if the touch was pressed in the most recent tick. More...
 
virtual Bool WasReleased () const =0
 Check if the touch was released in the most recent tick. More...
 
virtual Bool WasMoved () const =0
 Check if the touch was moved in the most recent tick. More...
 
virtual Real GetPositionX () const =0
 Get the touch x-position on the display surface. More...
 
virtual Real GetPositionY () const =0
 Get the touch y-position on the display surface. More...
 
- Public Member Functions inherited from Murl::Input::IDevice
virtual const StringGetName () const =0
 Get the device name. More...
 
virtual UInt32 GetId () const =0
 Get the unique device identifier. More...
 
virtual Bool HasUpdate () const =0
 Check if the device has received new data since the last Update(). More...
 
virtual void LogicUpdate ()=0
 Is executed in the logic thread context each logic tick.
 
virtual void ConfigChanged (const IAppConfiguration *appConfig)=0
 Notification of changed configuration. More...
 
- Public Member Functions inherited from Murl::Input::IMouseButtons
virtual UInt32 GetNumberOfButtons () const =0
 Get the number of buttons available in the device. More...
 
virtual Bool IsButtonPressed (IEnums::MouseButton button) const =0
 Check if a specified mouse button is pressed. More...
 
virtual Bool WasButtonPressed (IEnums::MouseButton button) const =0
 Check if a specified mouse button was pressed in the most recent tick. More...
 
virtual Bool WasButtonReleased (IEnums::MouseButton button) const =0
 Check if a specified mouse button was released in the most recent tick. More...
 

Detailed Description

The ITouchScreenDevice interface.

Multi touch devices represents each single touch by a separate device. Multi touch reports can be disabled by IAppConfiguration::SetMultiTouchActive().

Member Function Documentation

◆ IsPressed()

virtual Bool Murl::Input::ITouchScreenDevice::IsPressed ( ) const
pure virtual

Check if the touch is pressed.

Returns
true if the touch is pressed.

◆ WasCancelled()

virtual Bool Murl::Input::ITouchScreenDevice::WasCancelled ( ) const
pure virtual

Check if the touch was cancelled in the most recent tick.

A touch controller typically cancel multi touch inputs if too much simultaneous touches are present.

Returns
true if the touch was cancelled in the most recent tick.

◆ WasPressed()

virtual Bool Murl::Input::ITouchScreenDevice::WasPressed ( ) const
pure virtual

Check if the touch was pressed in the most recent tick.

Returns
true if the touch was pressed in the most recent tick.

◆ WasReleased()

virtual Bool Murl::Input::ITouchScreenDevice::WasReleased ( ) const
pure virtual

Check if the touch was released in the most recent tick.

Returns
true if the touch was released in the most recent tick.

◆ WasMoved()

virtual Bool Murl::Input::ITouchScreenDevice::WasMoved ( ) const
pure virtual

Check if the touch was moved in the most recent tick.

Returns
true if the touch was moved in the most recent tick.

◆ GetPositionX()

virtual Real Murl::Input::ITouchScreenDevice::GetPositionX ( ) const
pure virtual

Get the touch x-position on the display surface.

Returns
The x-position in range [-1.0 left .. 1.0 right].

◆ GetPositionY()

virtual Real Murl::Input::ITouchScreenDevice::GetPositionY ( ) const
pure virtual

Get the touch y-position on the display surface.

Returns
The y-position in range [-1.0 bottom .. 1.0 top].

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


Copyright © 2011-2018 Spraylight GmbH.