mirror of
https://github.com/love2d/love.git
synced 2026-08-13 09:00:54 +02:00
Rework internal module registration to happen in constructors.
This commit is contained in:
@@ -26,6 +26,11 @@ namespace love
|
||||
namespace sensor
|
||||
{
|
||||
|
||||
Sensor::Sensor(const char *name)
|
||||
: Module(M_SENSOR, name)
|
||||
{
|
||||
}
|
||||
|
||||
STRINGMAP_CLASS_BEGIN(Sensor, Sensor::SensorType, Sensor::SENSOR_MAX_ENUM, sensorType)
|
||||
{
|
||||
{ "accelerometer", Sensor::SENSOR_ACCELEROMETER },
|
||||
|
||||
Reference in New Issue
Block a user