/**
* Copyright 2013 Mark Browning, StellaArtois
* Licensed under the LGPL 3.0 or later (See LICENSE.md for details)
*/
package com.mtbs3d.minecrift.control;
import net.minecraft.src.EntityClientPlayerMP;
import net.minecraft.src.Minecraft;
public class WalkLeftBinding extends ControlBinding {
public WalkLeftBinding() {
super("key.left","key.left");
}
@Override
public void setValue(float value) {
EntityClientPlayerMP thePlayer = Minecraft.getMinecraft().thePlayer;
if( thePlayer != null )
thePlayer.movementInput.baseMoveStrafe = Math.abs(value);
}
@Override
public void setState(boolean state) {
setValue( state ? Minecraft.getMinecraft().vrSettings.movementSpeedMultiplier: 0.0f );
}
}