Rework internal module registration to happen in constructors.

This commit is contained in:
Sasha Szpakowski
2024-02-24 15:21:38 -04:00
parent c7e4dafd88
commit 1e97e09b28
73 changed files with 154 additions and 248 deletions
+5
View File
@@ -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 },