blob: a7a31e6bb23a8de7a50bee7ea53608b81d1017c4 [file] [log] [blame]
Brian Silverman26e4e522015-12-17 01:56:40 -05001/*----------------------------------------------------------------------------*/
Brian Silverman1a675112016-02-20 20:42:49 -05002/* Copyright (c) FIRST 2011-2016. All Rights Reserved. */
Brian Silverman26e4e522015-12-17 01:56:40 -05003/* Open Source Software - may be modified and shared by FRC teams. The code */
Brian Silverman1a675112016-02-20 20:42:49 -05004/* must be accompanied by the FIRST BSD license file in the root directory of */
5/* the project. */
Brian Silverman26e4e522015-12-17 01:56:40 -05006/*----------------------------------------------------------------------------*/
7
8#include "Buttons/JoystickButton.h"
9
10JoystickButton::JoystickButton(GenericHID *joystick, int buttonNumber)
11 : m_joystick(joystick), m_buttonNumber(buttonNumber) {}
12
13bool JoystickButton::Get() { return m_joystick->GetRawButton(m_buttonNumber); }