added statics into MyGestureDetector class