Reputation: 395
Im currently working on a game that uses multi touch to apply zoom to the camera but i i want to put a magnifying glass in those devices that does not have multi touch capabilities.
I've already searched and i cant find the answer,
thanks!
Upvotes: 1
Views: 956
Reputation: 9851
I think this what you're looking for:
if(getPackageManager().hasSystemFeature(PackageManager.FEATURE_TOUCHSCREEN_MULTITOUCH)) {
//do multitouch
} else {
//do magnifying glass
}
Upvotes: 4