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

Simulating button press #63

Open
tomaae opened this issue Mar 7, 2024 · 0 comments
Open

Simulating button press #63

tomaae opened this issue Mar 7, 2024 · 0 comments

Comments

@tomaae
Copy link

tomaae commented Mar 7, 2024

I'm trying to simulate button press, but its not reliable at all. Most of the time there is no reaction at all.
Are there any limitations to simulated button presses on joystick? My guess is that press is too short to be registered.

For context, I'm using simplerotary library and I want encoder turns to be passed via controller as button presses:

  int r1Dir = rotary1.rotate();
  if ( r1Dir == 1  ) {// CW
      controllerData.buttonArray[(4 - 2) / 8] |= HIGH << ((4 - 2) % 8);
  }
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