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

Failed to press A button. #62

Open
RayPS opened this issue Jan 7, 2023 · 1 comment
Open

Failed to press A button. #62

RayPS opened this issue Jan 7, 2023 · 1 comment

Comments

@RayPS
Copy link

RayPS commented Jan 7, 2023

First for all, I'm so impressed by this brilliant project after researching on lots of hardware based solutions.
However, there might be an issue where the A button doesn't getting pressed at the beginning. Instead the +/- button was somehow pressed and the controller help menu from Switch shows up. The plot is also likely offsetted.
(See my recording below)

I'm using the Pre-configured Image.

Screenshot.2023-01-07.at.21.02.39-converted.mp4
@RayPS
Copy link
Author

RayPS commented Jan 7, 2023

After diving into the code, I believe it should be L_STICK_PRESS button instead of MINUS button to reset the canvas.

# Goto (0,0) point and clear
command_list: list[Union[Button, tuple[Button, int]]] = []
reset_command = reset(['left', 'up'])
if stable_mode:
command_list += reset_command
command_list.append(Button.MINUS)
else:
for button, press_time in reset_command:
connection.button_hold(button, duration_ms=press_time)
connection.button_press(Button.MINUS)

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