Added stick input and loops to macros
This commit is contained in:
parent
a4bce53d1e
commit
db4b550166
10 changed files with 384 additions and 61 deletions
|
|
@ -15,7 +15,7 @@ from time import perf_counter
|
|||
from nxbt import toggle_input_plugin
|
||||
from nxbt import BlueZ
|
||||
from nxbt import Controller
|
||||
from nxbt import ControllerTypes
|
||||
from nxbt import JOYCON_L, JOYCON_R, PRO_CONTROLLER
|
||||
|
||||
|
||||
JCL_REPLY02 = b'\xA2\x21\x05\x8E\x84\x00\x12\x01\x18\x80\x01\x18\x80\x80\x82\x02\x03\x48\x01\x02\xDC\xA6\x32\x16\x4A\x7C\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
|
||||
|
|
@ -95,10 +95,10 @@ if __name__ == "__main__":
|
|||
# Switch Controller Bluetooth MAC Address goes here
|
||||
jc_MAC = "7C:BB:8A:FA:41:3D"
|
||||
# Specify the type of controller here
|
||||
controller_type = ControllerTypes.PRO_CONTROLLER
|
||||
if controller_type == ControllerTypes.JOYCON_L:
|
||||
controller_type = PRO_CONTROLLER
|
||||
if controller_type == JOYCON_L:
|
||||
REPLY = JCL_REPLY02
|
||||
elif controller_type == ControllerTypes.JOYCON_R:
|
||||
elif controller_type == JOYCON_R:
|
||||
REPLY = JCR_REPLY02
|
||||
else:
|
||||
REPLY = PRO_REPLY02
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue