Announcement

Collapse
No announcement yet.

What are the gamepad's Right Button and Left Button called in OnBotJava?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • What are the gamepad's Right Button and Left Button called in OnBotJava?

    Sorry for the rank beginner question, I'll be quick.

    My team recently switched our PC (Windows 10) laptops from Android Studio to OnBotJava, I'm much happier with the latter.

    We are using Logitech F310 controllers. To access the joysticks you use names like gamepad1.left_stick_y and gamepad2.right_stick_x etc.

    These names apparently come from the libraries imported at the top of the program, provided by OnBotJava, correct?

    My question is, what names to you use to read the state of the RB and LB buttons at the front of the controller? Do they produce a 1 when pressed and 0 when not pressed?

    And, is there some large list of all the names for the various controls on the Logitech F310?

    Thanx all!

    ON EDIT:
    Whoops, is this it? Just found it by random googling:
    http://ftckey.com/apis/ftc/com/qualc...e/Gamepad.html
    Last edited by Little-Acorn; 09-14-2018, 06:53 PM.

  • #2
    The official Javadoc is at http://ftctechnh.github.io/ftc_app/d...doc/index.html. Anyway, left_bumper and right_bumper of the Gamepad object are what you are looking for.

    Comment


    • #3
      Thank you, dmssargent!

      Comment

      Working...
      X