mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
Rename love.sensor.isAvailable to love.sensor.hasSensor.
This commit is contained in:
@@ -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++)
|
||||
{
|
||||
|
||||
@@ -46,7 +46,7 @@ public:
|
||||
// Implements Module.
|
||||
const char *getName() const override;
|
||||
|
||||
bool isAvailable(SensorType type) override;
|
||||
bool hasSensor(SensorType type) override;
|
||||
bool isEnabled(SensorType type) override;
|
||||
void setEnabled(SensorType type, bool enable) override;
|
||||
std::vector<float> getData(SensorType type) override;
|
||||
|
||||
Reference in New Issue
Block a user