Announcement

Collapse
No announcement yet.

Gamepad object in Opmode

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

  • FTC12676
    started a topic Gamepad object in Opmode

    Gamepad object in Opmode

    We want to identify gamepad button state as Just pressed, pressed, just released and released. To make this possible we created our own gamepad class. Logic is fine but we observed strange behavior and I think gamepad object in Linear opmode is changing reference every time in loop. So we are thinking of not storing gamepad reference in our custom class. I want to confirm if gamepad object does change every time in opmode cyle? Is it true for opmode and also for LinearOpMode? Last question why? Isn

  • FTC12676
    replied
    To complete above is it not bad for memory or gc?

    Leave a comment:

Working...
X