mirror of
https://github.com/SteamDeckHomebrew/decky-plugin-template.git
synced 2025-10-28 22:12:26 -05:00
Initial commit
This commit is contained in:
commit
52f6ca1c58
8 changed files with 2679 additions and 0 deletions
9
main.py
Normal file
9
main.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
class Plugin:
|
||||
# A normal method. It can be called from JavaScript using call_plugin_function("method_1", argument1, argument2)
|
||||
async def add(self, left, right):
|
||||
return left + right
|
||||
|
||||
|
||||
# Asyncio-compatible long-running code, executed in a task when the plugin is loaded
|
||||
async def _main(self):
|
||||
pass
|
||||
Loading…
Add table
Add a link
Reference in a new issue