001/*----------------------------------------------------------------------------*/
002/* Copyright (c) 2016-2018 FIRST. All Rights Reserved.                        */
003/* Open Source Software - may be modified and shared by FRC teams. The code   */
004/* must be accompanied by the FIRST BSD license file in the root directory of */
005/* the project.                                                               */
006/*----------------------------------------------------------------------------*/
007
008package edu.wpi.first.wpilibj;
009
010/**
011 * JoystickBase Interface.
012 *
013 * @deprecated Inherit directly from GenericHID instead.
014 */
015@Deprecated
016public abstract class JoystickBase extends GenericHID {
017  public JoystickBase(int port) {
018    super(port);
019  }
020
021  /**
022   * Get the z position of the HID.
023   *
024   * @param hand which hand, left or right
025   * @return the z position
026   */
027  public abstract double getZ(Hand hand);
028
029  public double getZ() {
030    return getZ(Hand.kRight);
031  }
032
033  /**
034   * Get the twist value.
035   *
036   * @return the twist value
037   */
038  public abstract double getTwist();
039
040  /**
041   * Get the throttle.
042   *
043   * @return the throttle value
044   */
045  public abstract double getThrottle();
046}