Spike

Activation relay.

Constructor

Spike <id>

Action

Notifies all subscribers then returns to the state deactivated.

Predefined children

None.

Example


use core
use base
use gui

_define_
Button (Process frame, double x, double y) {
  Spike click
  Rectangle r1 (0, 0, 100, 70, 0, 0)
  FSM fsm {
    State idle
    State pressed
    idle->pressed (r1.press)
    pressed->idle (r1.release, click)
    pressed->idle (frame.release)
  }
}