|
| 1 | +import wpilib |
| 2 | + |
| 3 | +class Gamepad: |
| 4 | + def __init__(self): |
| 5 | + pass |
| 6 | + def getCurrent(self) -> float: |
| 7 | + return self.currentSubscriber.get() |
| 8 | + |
| 9 | + GetLeftX: |
| 10 | + GetLeftY: |
| 11 | + GetRightX: |
| 12 | + GetRightY: |
| 13 | + GetLeftTriggerAxis: |
| 14 | + LeftTrigger: |
| 15 | + GetRightTriggerAxis: |
| 16 | + RightTrigger: |
| 17 | + GetSouthFaceButton: |
| 18 | + GetSouthFaceButtonPressed: |
| 19 | + GetSouthFaceButtonReleased: |
| 20 | + SouthFace: |
| 21 | + GetEastFaceButton: |
| 22 | + GetEastFaceButtonPressed: |
| 23 | + GetEastFaceButtonReleased: |
| 24 | + EastFace: |
| 25 | + GetWestFaceButton: |
| 26 | + GetWestFaceButtonPressed: |
| 27 | + GetWestFaceButtonReleased: |
| 28 | + WestFace: |
| 29 | + GetNorthFaceButton: |
| 30 | + GetNorthFaceButtonPressed: |
| 31 | + GetNorthFaceButtonReleased: |
| 32 | + NorthFace: |
| 33 | + GetBackButton: |
| 34 | + GetBackButtonPressed: |
| 35 | + GetBackButtonReleased: |
| 36 | + Back: |
| 37 | + GetGuideButton: |
| 38 | + GetGuideButtonPressed: |
| 39 | + GetGuideButtonReleased: |
| 40 | + Guide: |
| 41 | + GetStartButton: |
| 42 | + GetStartButtonPressed: |
| 43 | + GetStartButtonReleased: |
| 44 | + Start: |
| 45 | + GetLeftStickButton: |
| 46 | + GetLeftStickButtonPressed: |
| 47 | + GetLeftStickButtonReleased: |
| 48 | + LeftStick: |
| 49 | + GetRightStickButton: |
| 50 | + GetRightStickButtonPressed: |
| 51 | + GetRightStickButtonReleased: |
| 52 | + RightStick: |
| 53 | + GetLeftShoulderButton: |
| 54 | + GetLeftShoulderButtonPressed: |
| 55 | + GetLeftShoulderButtonReleased: |
| 56 | + LeftShoulder: |
| 57 | + GetRightShoulderButton: |
| 58 | + GetRightShoulderButtonPressed: |
| 59 | + GetRightShoulderButtonReleased: |
| 60 | + RightShoulder: |
| 61 | + GetDpadUpButton: |
| 62 | + GetDpadUpButtonPressed: |
| 63 | + GetDpadUpButtonReleased: |
| 64 | + DpadUp: |
| 65 | + GetDpadDownButton: |
| 66 | + GetDpadDownButtonPressed: |
| 67 | + GetDpadDownButtonReleased: |
| 68 | + DpadDown: |
| 69 | + GetDpadLeftButton: |
| 70 | + GetDpadLeftButtonPressed: |
| 71 | + GetDpadLeftButtonReleased: |
| 72 | + DpadLeft: |
| 73 | + GetDpadRightButton: |
| 74 | + GetDpadRightButtonPressed: |
| 75 | + GetDpadRightButtonReleased: |
| 76 | + DpadRight: |
| 77 | + GetMisc1Button: |
| 78 | + GetMisc1ButtonPressed: |
| 79 | + GetMisc1ButtonReleased: |
| 80 | + Misc1: |
| 81 | + GetRightPaddle1Button: |
| 82 | + GetRightPaddle1ButtonPressed: |
| 83 | + GetRightPaddle1ButtonReleased: |
| 84 | + RightPaddle1: |
| 85 | + GetLeftPaddle1Button: |
| 86 | + GetLeftPaddle1ButtonPressed: |
| 87 | + GetLeftPaddle1ButtonReleased: |
| 88 | + LeftPaddle1: |
| 89 | + GetRightPaddle2Button: |
| 90 | + GetRightPaddle2ButtonPressed: |
| 91 | + GetRightPaddle2ButtonReleased: |
| 92 | + RightPaddle2: |
| 93 | + GetLeftPaddle2Button: |
| 94 | + GetLeftPaddle2ButtonPressed: |
| 95 | + GetLeftPaddle2ButtonReleased: |
| 96 | + LeftPaddle2: |
| 97 | + GetTouchpadButton: |
| 98 | + GetTouchpadButtonPressed: |
| 99 | + GetTouchpadButtonReleased: |
| 100 | + Touchpad: |
| 101 | + GetMisc2Button: |
| 102 | + GetMisc2ButtonPressed: |
| 103 | + GetMisc2ButtonReleased: |
| 104 | + Misc2: |
| 105 | + GetMisc3Button: |
| 106 | + GetMisc3ButtonPressed: |
| 107 | + GetMisc3ButtonReleased: |
| 108 | + Misc3: |
| 109 | + GetMisc4Button: |
| 110 | + GetMisc4ButtonPressed: |
| 111 | + GetMisc4ButtonReleased: |
| 112 | + Misc4: |
| 113 | + GetMisc5Button: |
| 114 | + GetMisc5ButtonPressed: |
| 115 | + GetMisc5ButtonReleased: |
| 116 | + Misc5: |
| 117 | + GetMisc6Button: |
| 118 | + GetMisc6ButtonPressed: |
| 119 | + GetMisc6ButtonReleased: |
| 120 | + Misc6: |
| 121 | + InitSendable: |
| 122 | + |
| 123 | + |
0 commit comments