2016-11-18 23:05:37 -08:00
|
|
|
/*----------------------------------------------------------------------------*/
|
2018-01-02 09:20:21 -08:00
|
|
|
/* Copyright (c) 2016-2018 FIRST. All Rights Reserved. */
|
2016-11-18 23:05:37 -08:00
|
|
|
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
|
|
|
|
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
|
|
|
|
/* the project. */
|
|
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2018-04-29 23:33:19 -07:00
|
|
|
#include <wpi/deprecated.h>
|
2017-10-27 21:45:56 -07:00
|
|
|
|
2018-07-20 00:03:45 -07:00
|
|
|
#include "frc/GenericHID.h"
|
2016-11-18 23:05:37 -08:00
|
|
|
|
|
|
|
|
namespace frc {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Gamepad Interface.
|
|
|
|
|
*/
|
2017-10-27 21:45:56 -07:00
|
|
|
class WPI_DEPRECATED("Inherit directly from GenericHID instead.") GamepadBase
|
|
|
|
|
: public GenericHID {
|
2016-11-18 23:05:37 -08:00
|
|
|
public:
|
|
|
|
|
explicit GamepadBase(int port);
|
|
|
|
|
virtual ~GamepadBase() = default;
|
|
|
|
|
|
|
|
|
|
virtual bool GetBumper(JoystickHand hand = kRightHand) const = 0;
|
|
|
|
|
virtual bool GetStickButton(JoystickHand hand) const = 0;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace frc
|