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