Does anyone have any idea why getPressure()
returns always 1.0
?
Here is my code:
@Override
public boolean onTouchEvent(MotionEvent event) {
super.onTouchEvent(event);
System.out.println(event.getPressure());
return true;
}
Does anyone have any idea why getPressure() returns always 1.0?
The typical touchscreen / input device has no way to measure pressure. You either don't press and get no touch event or you press and get a touch event with value 1.