Class EventLoop

java.lang.Object
edu.wpi.first.wpilibj.event.EventLoop

public final class EventLoop
extends Object
The loop polling BooleanEvent objects and executing the actions bound to them.
  • Constructor Details

  • Method Details

    • bind

      public void bind​(Runnable action)
      Bind a new action to run whenever the condition is true.
      Parameters:
      action - the action to run.
    • poll

      public void poll()
      Poll all bindings.
    • clear

      public void clear()
      Clear all bindings.