Source code for wpilib.interfaces.gamepadbase

# validated: 2016-12-10 AA e44a6e227a89 athena/java/edu/wpi/first/wpilibj/GamepadBase.java
# ----------------------------------------------------------------------------
# Copyright (c) FIRST 2016. All Rights Reserved.
# 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.
#----------------------------------------------------------------------------

from .generichid import GenericHID

__all__ = ["GamepadBase"]

[docs]class GamepadBase(GenericHID): """ GamepadBase Interface. """ def __init__(self, port): super().__init__(port)
[docs] def getRawAxis(self, axis): raise NotImplementedError
[docs] def getBumper(self, hand): """Is the bumper pressed. :param hand: which hand :returns: true if the bumper is pressed """ raise NotImplementedError
[docs] def getStickButton(self, hand=None): raise NotImplementedError
[docs] def getRawButton(self, button): raise NotImplementedError
[docs] def getPOV(self, pov=0): raise NotImplementedError
[docs] def getPOVCount(self): raise NotImplementedError
[docs] def getType(self): raise NotImplementedError
[docs] def getName(self): raise NotImplementedError
[docs] def setOutput(self, outputNumber, value): raise NotImplementedError
[docs] def setOutputs(self, value): raise NotImplementedError
[docs] def setRumble(self, type, value): raise NotImplementedError