WhiteMagic / JoystickGremlin

A tool for configuring and managing joystick devices.
http://whitemagic.github.io/JoystickGremlin/
GNU General Public License v3.0
313 stars 46 forks source link

Dynamic configuration system #422

Closed WhiteMagic closed 2 years ago

WhiteMagic commented 2 years ago

The current configuration class has only hardcoded values despite serializing everything into a JSON file. To allow actions, especially user-created ones to define configuration options a dynamic configuration class needs to be added.

The class will work using a registration system, i.e. code can register configuration values and their type at runtime. When accessing the configuration value existence and type correctness can be enforced in this manner.