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 @@ const char *Sensor::getName() const
return "love.sensor.sdl";
}
bool Sensor::isAvailable(SensorType type)
bool Sensor::hasSensor(SensorType type)
{
for (int i = 0; i < SDL_NumSensors(); i++)
{