Search in sources :

Example 1 with OpenVRInput

use of org.terasology.engine.subsystem.openvr.OpenVRInput in project Terasology by MovingBlocks.

the class Terasology method populateSubsystems.

private static void populateSubsystems(TerasologyEngineBuilder builder) {
    if (isHeadless) {
        builder.add(new HeadlessGraphics()).add(new HeadlessTimer()).add(new HeadlessAudio()).add(new HeadlessInput());
    } else {
        EngineSubsystem audio = soundEnabled ? new LwjglAudio() : new HeadlessAudio();
        builder.add(audio).add(new LwjglGraphics()).add(new LwjglTimer()).add(new LwjglInput()).add(new BindsSubsystem()).add(new OpenVRInput());
    }
    builder.add(new HibernationSubsystem());
}
Also used : LwjglAudio(org.terasology.engine.subsystem.lwjgl.LwjglAudio) HeadlessTimer(org.terasology.engine.subsystem.headless.HeadlessTimer) BindsSubsystem(org.terasology.engine.subsystem.config.BindsSubsystem) HeadlessGraphics(org.terasology.engine.subsystem.headless.HeadlessGraphics) EngineSubsystem(org.terasology.engine.subsystem.EngineSubsystem) OpenVRInput(org.terasology.engine.subsystem.openvr.OpenVRInput) LwjglTimer(org.terasology.engine.subsystem.lwjgl.LwjglTimer) LwjglInput(org.terasology.engine.subsystem.lwjgl.LwjglInput) LwjglGraphics(org.terasology.engine.subsystem.lwjgl.LwjglGraphics) HeadlessInput(org.terasology.engine.subsystem.headless.HeadlessInput) HeadlessAudio(org.terasology.engine.subsystem.headless.HeadlessAudio) HibernationSubsystem(org.terasology.engine.subsystem.common.hibernation.HibernationSubsystem)

Aggregations

EngineSubsystem (org.terasology.engine.subsystem.EngineSubsystem)1 HibernationSubsystem (org.terasology.engine.subsystem.common.hibernation.HibernationSubsystem)1 BindsSubsystem (org.terasology.engine.subsystem.config.BindsSubsystem)1 HeadlessAudio (org.terasology.engine.subsystem.headless.HeadlessAudio)1 HeadlessGraphics (org.terasology.engine.subsystem.headless.HeadlessGraphics)1 HeadlessInput (org.terasology.engine.subsystem.headless.HeadlessInput)1 HeadlessTimer (org.terasology.engine.subsystem.headless.HeadlessTimer)1 LwjglAudio (org.terasology.engine.subsystem.lwjgl.LwjglAudio)1 LwjglGraphics (org.terasology.engine.subsystem.lwjgl.LwjglGraphics)1 LwjglInput (org.terasology.engine.subsystem.lwjgl.LwjglInput)1 LwjglTimer (org.terasology.engine.subsystem.lwjgl.LwjglTimer)1 OpenVRInput (org.terasology.engine.subsystem.openvr.OpenVRInput)1