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

How to chain commands like "L + R"? #7

Open
dentedghost opened this issue Aug 2, 2020 · 8 comments
Open

How to chain commands like "L + R"? #7

dentedghost opened this issue Aug 2, 2020 · 8 comments
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed

Comments

@dentedghost
Copy link

JoyControl documentation says: Commands can be chained using "&&".

I tried sending "l & r", "l && r".

Just solved it but good to share. This works to chain "l|r"

@dentedghost
Copy link
Author

Use pipe | instead of & or && to chain commands.

@choss
Copy link
Owner

choss commented Aug 2, 2020

Really? I was assuming to use two "hold" events, wait and then send the release events.

@choss choss added the documentation Improvements or additions to documentation label Aug 2, 2020
@dentedghost
Copy link
Author

I used the /button/tab and it registered the L + R

@choss
Copy link
Owner

choss commented Aug 2, 2020

Don't get me wrong, that is good to know! I was just surprised myself. I am no python expert so i can only imagine what happened

@dentedghost
Copy link
Author

Ha, Reopening. It did work :) but no longer :(. I think you approach would be more solid "I was assuming to use two "hold" events, wait and then send the release events."

One interesting point, is if I send L followed by R shortly after the Switch treats it like L+R when it's waiting for it.

@dentedghost
Copy link
Author

Not top priority since I can essentially do it given the current interface like you said.

@dentedghost dentedghost reopened this Aug 3, 2020
@choss choss added the help wanted Extra attention is needed label Aug 3, 2020
@choss
Copy link
Owner

choss commented Aug 3, 2020

If someone wants to add new endpoints with multi-press / multi-release and multi-tap: feel free to add a PR

@dentedghost
Copy link
Author

See if I have time on the weekend :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants