}
while (Controllers.next()) {
final Controller source = Controllers.getEventSource();
if (Controllers.isEventButton()) {
_events.add(new ControllerEvent(Controllers.getEventNanoseconds(), source.getName(), source
.getButtonName(Controllers.getEventControlIndex()), source.isButtonPressed(Controllers
.getEventControlIndex()) ? 1f : 0f));
} else if (Controllers.isEventAxis()) {
_events.add(new ControllerEvent(Controllers.getEventNanoseconds(), source.getName(), source
.getAxisName(Controllers.getEventControlIndex()), source.getAxisValue(Controllers
.getEventControlIndex())));
} else if (Controllers.isEventPovX()) {
_events.add(new ControllerEvent(Controllers.getEventNanoseconds(), source.getName(), "Pov X", source
.getPovX()));
} else if (Controllers.isEventPovY()) {
_events.add(new ControllerEvent(Controllers.getEventNanoseconds(), source.getName(), "Pov Y", source
.getPovY()));
}
}
return _eventsIt;