Search in sources :

Example 1 with OpenVRInput

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

the class Terasology method populateSubsystems.

private void populateSubsystems(TerasologyEngineBuilder builder) {
    if (isHeadless) {
        builder.add(new HeadlessGraphics()).add(new HeadlessTimer()).add(new HeadlessAudio());
    } 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 DiscordRPCSubSystem());
    }
    builder.add(new HibernationSubsystem());
}
Also used : LwjglAudio(org.terasology.engine.core.subsystem.lwjgl.LwjglAudio) HeadlessTimer(org.terasology.engine.core.subsystem.headless.HeadlessTimer) BindsSubsystem(org.terasology.engine.core.subsystem.config.BindsSubsystem) HeadlessGraphics(org.terasology.engine.core.subsystem.headless.HeadlessGraphics) EngineSubsystem(org.terasology.engine.core.subsystem.EngineSubsystem) OpenVRInput(org.terasology.engine.core.subsystem.openvr.OpenVRInput) LwjglTimer(org.terasology.engine.core.subsystem.lwjgl.LwjglTimer) LwjglInput(org.terasology.engine.core.subsystem.lwjgl.LwjglInput) LwjglGraphics(org.terasology.engine.core.subsystem.lwjgl.LwjglGraphics) HeadlessAudio(org.terasology.engine.core.subsystem.headless.HeadlessAudio) DiscordRPCSubSystem(org.terasology.subsystem.discordrpc.DiscordRPCSubSystem) HibernationSubsystem(org.terasology.engine.core.subsystem.common.hibernation.HibernationSubsystem)

Aggregations

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