mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-12-05 21:58:44 +08:00
add VelocityTracker::isAxisSupported
This commit is contained in:
parent
fb6d2005a7
commit
8288cbd2ba
@ -436,6 +436,10 @@ void VelocityTracker::clear(){
|
||||
mTrackerState->clear();
|
||||
}
|
||||
|
||||
bool VelocityTracker::isAxisSupported(int axis)const{
|
||||
return VelocityTrackerImpl::isAxisSupported(axis);
|
||||
}
|
||||
|
||||
void VelocityTracker::addMovement(const MotionEvent& event){
|
||||
mTrackerState->addMovement(event);
|
||||
}
|
||||
|
@ -109,6 +109,7 @@ public:
|
||||
static VelocityTracker*obtain(int strategy);
|
||||
void recycle();
|
||||
void clear();
|
||||
bool isAxisSupported(int axis)const;
|
||||
void addMovement(const MotionEvent& event);
|
||||
void computeCurrentVelocity(int units);
|
||||
void computeCurrentVelocity(int units,float maxVelocity);
|
||||
|
Loading…
Reference in New Issue
Block a user