change VelocityTracker::isAxisSupported to static

This commit is contained in:
侯歌 2024-05-08 21:36:25 +08:00
parent 57e049ef4c
commit f06a4f6f41
2 changed files with 2 additions and 2 deletions

View File

@ -436,7 +436,7 @@ void VelocityTracker::clear(){
mTrackerState->clear();
}
bool VelocityTracker::isAxisSupported(int axis)const{
bool VelocityTracker::isAxisSupported(int axis){
return VelocityTrackerImpl::isAxisSupported(axis);
}

View File

@ -109,7 +109,7 @@ public:
static VelocityTracker*obtain(int strategy);
void recycle();
void clear();
static bool isAxisSupported(int axis)const;
static bool isAxisSupported(int axis);
void addMovement(const MotionEvent& event);
void computeCurrentVelocity(int units);
void computeCurrentVelocity(int units,float maxVelocity);