Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

普通按键支持按下N秒 #4

Open
0x1227 opened this issue Aug 24, 2020 · 0 comments
Open

普通按键支持按下N秒 #4

0x1227 opened this issue Aug 24, 2020 · 0 comments

Comments

@0x1227
Copy link

0x1227 commented Aug 24, 2020

-- line 9
from joycontrol.controller_state import button_push, button_press, button_release, ControllerState
-- line 25
self.available_sticks = {'ls','rs','btn'}
-- line 167
elif side == 'btn':
await button_press(self.controller_state, direction)
await asyncio.sleep(val/1000)
await button_release(self.controller_state, direction)

RUN Script Demo
AMIIBO 8Bit-Mario30thAnniversary.bin
1000
BTN RIGHT,3000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant