Пример #1
0
 public void processEvent(Event e) {
   String name = e.getName();
   if (name.equals("touch")) {
     which_changed.setValue(1 - which_changed.getValue());
   }
 }
Пример #2
0
 public void initialize() {
   which_changed = (SFInt32) getEventOut("which_changed");
   which_changed.setValue(0);
 }