Skip to content

Commit

Permalink
Added some debug hotkeys.
Browse files Browse the repository at this point in the history
  • Loading branch information
Automat-GH committed Mar 20, 2016
1 parent 11da27b commit fc0c178
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/com/mtbs3d/minecrift/settings/VRHotkeys.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import com.mtbs3d.minecrift.api.IBasePlugin;
import com.mtbs3d.minecrift.api.PluginManager;
import com.mtbs3d.minecrift.gameplay.VRPlayer;
import com.mtbs3d.minecrift.settings.VRSettings;
import net.minecraft.client.Minecraft;
import org.lwjgl.input.Keyboard;
Expand Down Expand Up @@ -134,6 +135,29 @@ public static void handleKeyboardInputs(Minecraft mc)
gotKey = true;
}

// VIVE START - hotkeys
/*
// Testing different movement styles
if (Keyboard.getEventKey() == Keyboard.KEY_M && Keyboard.isKeyDown(Keyboard.KEY_RCONTROL))
{
// cycle VR movement styles
if (mc.vrMovementStyle.name == "Minimal") mc.vrMovementStyle.setStyle("Beam");
else if (mc.vrMovementStyle.name == "Beam") mc.vrMovementStyle.setStyle("Tunnel");
else if (mc.vrMovementStyle.name == "Tunnel") mc.vrMovementStyle.setStyle("Grapple");
else if (mc.vrMovementStyle.name == "Grapple") mc.vrMovementStyle.setStyle("Arc");
else mc.vrMovementStyle.setStyle("Minimal");
gotKey = true;
}
*/
if (Keyboard.getEventKey() == Keyboard.KEY_R && Keyboard.isKeyDown(Keyboard.KEY_RCONTROL))
{
// for testing restricted client mode
mc.vrPlayer.restrictedViveClient = true;
mc.printChatMessage("Restricted movement enabled (no teleporting)");
gotKey = true;
}
// VIVE END - hotkeys

if (gotKey) {
nextRead = System.currentTimeMillis() + COOLOFF_PERIOD_MILLIS;
}
Expand Down

0 comments on commit fc0c178

Please sign in to comment.