We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 560c877 commit 68de035Copy full SHA for 68de035
1 file changed
plugins/samples/SamplePlugin.py
@@ -0,0 +1,18 @@
1
+import logging
2
+from JoycontrolPlugin import JoycontrolPlugin
3
+
4
+logger = logging.getLogger(__name__)
5
6
+class SamplePlugin(JoycontrolPlugin):
7
+ async def run(self):
8
+ logger.info('This is sample joycontrol plugin!')
9
10
+ logger.info(f'Plugin Options: {self.options}')
11
12
+ logger.info('Push the A Button')
13
+ await self.button_push('a')
14
+ await self.wait(0.3)
15
16
+ logger.info('Tilt the left stick down')
17
+ await self.left_stick('down')
18
0 commit comments