rework control component
At the moment the control component can only handle button presses. This is not ideal for a train simulator where you might want to accelerate only with half of the available power. To do this something like an Axis has to be implemented. Each Axis should be able to have values between -1.0 and 1.0. An Axis can be mapped to two Buttons (eg. w to 1.0, s to -1.0 and nothing to 0.0) or to some values crated by an actual analog (or digital with multiple values) input.
-
write a simple Axis class -
rewrite the current Control handling has 'normal' class (no longer a singleton) -
rewrite the control class to be able to ask for and return axis values
Edited by Noah Kirschmann