fix: Actually register InputSystem as system
There were a couple of NPEs with Dialogs because of this. The dependencies for the InputSystem were not injected via `@In` because the system was never registered as such. This simple change should solve this issue.
import org.terasology.engine.subsystem.config.BindsSubsystem;
import org.terasology.entitySystem.entity.EntityRef;
import org.terasology.entitySystem.systems.BaseComponentSystem;
+import org.terasology.entitySystem.systems.RegisterSystem;
import org.terasology.input.cameraTarget.CameraTargetSystem;
import org.terasology.input.device.ControllerAction;
import org.terasology.input.device.KeyboardAction;
* In addition to raw keyboard and mouse input, the system handles Bind Buttons and Bind Axis, which can be mapped
* to one or more inputs.
*/
+@RegisterSystem
public class InputSystem extends BaseComponentSystem {
@In
@@ -535,6 +537,6 @@ public void drainQueues() {
* @return a list of keyboard/mouse inputs that trigger the binding.
*/
public List<Input> getInputsForBindButton(SimpleUri bindId) {
- return bindsSubsystem.getInputsForBindButton((bindId));
+ return bindsSubsystem.getInputsForBindButton(bindId);
}
}
