Rename love.sensor.isAvailable to love.sensor.hasSensor.

This commit is contained in:
Miku AuahDark
2022-12-06 00:01:47 +08:00
parent a2a7ecd1e7
commit 32bebfd1fc
4 changed files with 6 additions and 7 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ public:
/**
* Check the availability of the sensor.
**/
virtual bool isAvailable(SensorType type) = 0;
virtual bool hasSensor(SensorType type) = 0;
/**
* Check if the sensor is enabled.