WPILibC++  2018.4.1-20180819221726-1160-g6df500e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
GamepadBase.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) 2016-2018 FIRST. All Rights Reserved. */
3 /* Open Source Software - may be modified and shared by FRC teams. The code */
4 /* must be accompanied by the FIRST BSD license file in the root directory of */
5 /* the project. */
6 /*----------------------------------------------------------------------------*/
7 
8 #pragma once
9 
10 #include <wpi/deprecated.h>
11 
12 #include "frc/GenericHID.h"
13 
14 namespace frc {
15 
19 class WPI_DEPRECATED("Inherit directly from GenericHID instead.") GamepadBase
20  : public GenericHID {
21  public:
22  explicit GamepadBase(int port);
23  virtual ~GamepadBase() = default;
24 
25  virtual bool GetBumper(JoystickHand hand = kRightHand) const = 0;
26  virtual bool GetStickButton(JoystickHand hand) const = 0;
27 };
28 
29 } // namespace frc
WPILib FRC namespace.
Definition: SPIAccelerometerSim.h:18
class virtual WPI_DEPRECATED("Inherit directly from GenericHID instead.") GamepadBase ~GamepadBase()=default
Gamepad Interface.