Skip to content

Commit 1e58bec

Browse files
committed
wip
1 parent bfffb90 commit 1e58bec

File tree

4 files changed

+475
-0
lines changed

4 files changed

+475
-0
lines changed

python/wpilib_placeholders/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Placeholder classes for future wpilib."""
22

33
from .expansion_hub import ExpansionHubPidConstants, ExpansionHubMotor, ExpansionHubServo, ExpansionHub
4+
from .gamepad import Gamepad
45
from .op_mode_robot import OpModeRobot
56
from .periodic_op_mode import PeriodicOpMode
67

@@ -9,6 +10,7 @@
910
'ExpansionHubMotor',
1011
'ExpansionHubServo',
1112
'ExpansionHub',
13+
'Gamepad',
1214
'OpModeRobot',
1315
'PeriodicOpMode',
1416
]
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
2+
class Gamepad:
3+
def __init__(self):
4+
pass
5+
6+
def getSouthFaceButton(self) -> bool:
7+
return true
8+
9+
def getEastFaceButton(self) -> bool:
10+
return true
11+
12+
def getWestFaceButton(self) -> bool:
13+
return true
14+
15+
def getNorthFaceButton(self) -> bool:
16+
return true
17+
18+
def getBackButton(self) -> bool:
19+
return true
20+
21+
def getGuideButton(self) -> bool:
22+
return true
23+
24+
def getStartButton(self) -> bool:
25+
return true
26+
27+
def getLeftStickButton(self) -> bool:
28+
return true
29+
30+
def getRightStickButton(self) -> bool:
31+
return true
32+
33+
def getLeftShoulderButton(self) -> bool:
34+
return true
35+
36+
def getRightShoulderButton(self) -> bool:
37+
return true
38+
39+
def getDpadUpButton(self) -> bool:
40+
return true
41+
42+
def getDpadDownButton(self) -> bool:
43+
return true
44+
45+
def getDpadLeftButton(self) -> bool:
46+
return true
47+
48+
def getDpadRightButton(self) -> bool:
49+
return true
50+
51+
def getMisc1Button(self) -> bool:
52+
return true
53+
54+
def getRightPaddle1Button(self) -> bool:
55+
return true
56+
57+
def getLeftPaddle1Button(self) -> bool:
58+
return true
59+
60+
def getRightPaddle2Button(self) -> bool:
61+
return true
62+
63+
def getLeftPaddle2Button(self) -> bool:
64+
return true
65+
66+
def getTouchpadButton(self) -> bool:
67+
return true
68+
69+
def getMisc2Button(self) -> bool:
70+
return true
71+
72+
def getMisc3Button(self) -> bool:
73+
return true
74+
75+
def getMisc4Button(self) -> bool:
76+
return true
77+
78+
def getMisc5Button(self) -> bool:
79+
return true
80+
81+
def getMisc6Button(self) -> bool:
82+
return true

0 commit comments

Comments
 (0)