diff --git a/3DS_Controller-evdev.py b/3DS_Controller-evdev.py index 697fad1..d587568 100755 --- a/3DS_Controller-evdev.py +++ b/3DS_Controller-evdev.py @@ -38,7 +38,7 @@ btn_map = { } device = { - # EV_ABS is for Absolute movement with static values, + # EV_ABS is for Absolute movement with static values, # like the sticks and the volume e.EV_ABS: [ (e.ABS_X, AbsInfo(0, -159, 159, 0, 10, 0)), @@ -134,7 +134,7 @@ keys.CDown = 1<<31 # circle pad def press_key(key): ui.write(e.EV_KEY, key, 1) ui.syn() - + def release_key(key): ui.write(e.EV_KEY,key, 0) ui.syn() @@ -152,11 +152,11 @@ while True: rawdata, addr = sock.recvfrom(4092) rawdata = bytearray(rawdata) # print("Received message", rawdata) - + if rawdata[0]==command.CONNECT: print("Connected with 3DS at address", addr) pass # CONNECT packets are empty - + if rawdata[0]==command.KEYS: # Just to explain this fuckery of struct.unpack: # : - SystemCallAccess: + SystemCallAccess: ArbitrateAddress: 34 Backdoor: 123 Break: 60 @@ -183,7 +183,7 @@ SystemControlInfo: # Modules that run services listed above should be included below # Maximum 48 dependencies # : - Dependency: + Dependency: ac: 0x0004013000002402 act: 0x0004013000003802 am: 0x0004013000001502