LuciadCPillar 2023.1.04
luciad::TouchTapEvent Class Reference

Specialization of the luciad::ClickEvent class for touch events. More...

#include <luciad/input/touch/TouchEvents.h>

Inheritance diagram for luciad::TouchTapEvent:
luciad::ClickEvent luciad::IInputEvent

Public Member Functions

 TouchTapEvent (Coordinate location, size_t tapCount, size_t touchPointCount, ModifierKeys modifierKeys)
 Creates a click event for a touch device. More...
 
size_t getTouchPointCount () const
 
- Public Member Functions inherited from luciad::ClickEvent
 ClickEvent (Coordinate location, size_t clickCount)
 Creates an event representing a click. More...
 
 ClickEvent (Coordinate location, size_t clickCount, ModifierKeys modifierKeys)
 Creates an event representing a click. More...
 
size_t getClickCount () const noexcept
 
Coordinate getLocation () const noexcept
 
ModifierKeys getModifierKeys () const noexcept
 
- Public Member Functions inherited from luciad::IInputEvent
virtual ~IInputEvent ()=default
 

Detailed Description

Specialization of the luciad::ClickEvent class for touch events.

Since
2022.0

Constructor & Destructor Documentation

◆ TouchTapEvent()

luciad::TouchTapEvent::TouchTapEvent ( Coordinate  location,
size_t  tapCount,
size_t  touchPointCount,
ModifierKeys  modifierKeys 
)
inline

Creates a click event for a touch device.

Parameters
locationThe location of the event, defined in device independent pixels
tapCountThe number of taps.
touchPointCountHow many touch points are used in the gesture.
modifierKeysThe modifiers of the event.

Member Function Documentation

◆ getTouchPointCount()

size_t luciad::TouchTapEvent::getTouchPointCount ( ) const
inline
Returns
how many touch points are used.
Note
: currently, the luciad::TouchGestureRecognizer does not support tap events with more than one touch point.