Lugdunum  0.1.0
Public Member Functions | Private Attributes | List of all members
ndk_helper::DoubletapDetector Class Reference

#include <gestureDetector.hpp>

Inheritance diagram for ndk_helper::DoubletapDetector:
[legend]
Collaboration diagram for ndk_helper::DoubletapDetector:
[legend]

Public Member Functions

 DoubletapDetector ()
 
virtual ~DoubletapDetector ()
 
virtual GESTURE_STATE Detect (const AInputEvent *motion_event)
 
virtual void SetConfiguration (AConfiguration *config)
 
- Public Member Functions inherited from ndk_helper::GestureDetector
 GestureDetector ()
 
virtual ~GestureDetector ()
 

Private Attributes

TapDetector tap_detector_
 
int64_t last_tap_time_ {0}
 
float last_tap_x_ {0.0f}
 
float last_tap_y_ {0.0f}
 

Additional Inherited Members

- Protected Attributes inherited from ndk_helper::GestureDetector
float dp_factor_
 

Detailed Description

Definition at line 81 of file gestureDetector.hpp.

Constructor & Destructor Documentation

◆ DoubletapDetector()

ndk_helper::DoubletapDetector::DoubletapDetector ( )

Definition at line 62 of file gestureDetector.cpp.

◆ ~DoubletapDetector()

virtual ndk_helper::DoubletapDetector::~DoubletapDetector ( )
inlinevirtual

Definition at line 90 of file gestureDetector.hpp.

Member Function Documentation

◆ Detect()

GESTURE_STATE ndk_helper::DoubletapDetector::Detect ( const AInputEvent *  motion_event)
virtual

Implements ndk_helper::GestureDetector.

Definition at line 65 of file gestureDetector.cpp.

◆ SetConfiguration()

void ndk_helper::DoubletapDetector::SetConfiguration ( AConfiguration *  config)
virtual

Reimplemented from ndk_helper::GestureDetector.

Definition at line 98 of file gestureDetector.cpp.

Member Data Documentation

◆ tap_detector_

TapDetector ndk_helper::DoubletapDetector::tap_detector_
private

Definition at line 83 of file gestureDetector.hpp.

◆ last_tap_time_

int64_t ndk_helper::DoubletapDetector::last_tap_time_ {0}
private

Definition at line 84 of file gestureDetector.hpp.

◆ last_tap_x_

float ndk_helper::DoubletapDetector::last_tap_x_ {0.0f}
private

Definition at line 85 of file gestureDetector.hpp.

◆ last_tap_y_

float ndk_helper::DoubletapDetector::last_tap_y_ {0.0f}
private

Definition at line 86 of file gestureDetector.hpp.


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