package net.minecraft.util;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;

@SideOnly(Side.CLIENT)
public class MouseFilter {

   private float field_76336_a;
   private float field_76334_b;
   private float field_76335_c;


   public float func_76333_a(float p_76333_1_, float p_76333_2_) {
      this.field_76336_a += p_76333_1_;
      p_76333_1_ = (this.field_76336_a - this.field_76334_b) * p_76333_2_;
      this.field_76335_c += (p_76333_1_ - this.field_76335_c) * 0.5F;
      if(p_76333_1_ > 0.0F && p_76333_1_ > this.field_76335_c || p_76333_1_ < 0.0F && p_76333_1_ < this.field_76335_c) {
         p_76333_1_ = this.field_76335_c;
      }

      this.field_76334_b += p_76333_1_;
      return p_76333_1_;
   }
}
