Add a new group for sensors in the right column of the dialog and add
show raw sensor values on progress bar indicators similar to axes.
Store the pointers to the progress bars in member variables because
it is not possible to connect them directly to the three dimensional
sensor "moved" events.
Add global constants for sensor minima and maxima. Since sensors
measure floating point physical parameters there are no real minima and maxima.
So use +/-90 m/s^2 as maximum for accelerometer and +/- 360 °/s for
gyroscope as senseful limits.
Implement sensor event activation in InputDevice and add minimal
implementation of the JoySensor side.
Therefore, add querying methods hasRawSensor and getRawSensorRate to
InputDevice and its child classes. The sensor data rate will be necessary for
accelerometer shock detection.
Sensors are supported in SDL since version 2.0.14. Do no use sensor
functions in prior version because it will not compile on older
Linux distributions otherwise.
Do not pass the flag SDL_INIT_SENSOR during SDL initialization as it triggers
bug libsdl-org/SDL#4276 on windows and works well without it.
This is the same thing JoyShockMapper does. It appears SDL_INIT_SENSOR is
for different sensor types than those in gamecontrollers.
Show available sensors in the details view in the controller
properties dialog and log detected sensors.
* Move ui files to separate directory
* Move source files
* Change forms location in CMakeLists.txt
* Add gui subdirectory to include directories
* Change references to files in CMakeLists.txt
* Move remaining custom widgets