mirror of
https://github.com/love2d/love.git
synced 2026-08-12 16:40:57 +02:00
love.sensor Lua API
This commit is contained in:
@@ -44,6 +44,11 @@ Sensor::~Sensor()
|
||||
SDL_QuitSubSystem(SDL_INIT_SENSOR);
|
||||
}
|
||||
|
||||
const char *Sensor::getName() const
|
||||
{
|
||||
return "love.sensor.sdl";
|
||||
}
|
||||
|
||||
bool Sensor::isAvailable(SensorType type)
|
||||
{
|
||||
for (int i = 0; i < SDL_NumSensors(); i++)
|
||||
|
||||
Reference in New Issue
Block a user