/* 786 */ if (this.readAction2D == -1) {
/* 787 */ this.readAction2D = 10;
/* */ }
/* */
/* 790 */ if (this.readAction2D == 10) {
/* 791 */ SensorReadListener r = new RotationListener2D(this.sensor2D, this.sensor6D);
/* */
/* 793 */ this.eventAgent.addSensorReadListener(this.sensor2D, r);
/* */ }
/* 795 */ else if (this.readAction2D == 8) {
/* 796 */ SensorReadListener r = new TranslationListener2D(this.sensor2D, this.sensor6D);
/* */
/* 798 */ this.eventAgent.addSensorReadListener(this.sensor2D, r);
/* */ }
/* 800 */ else if (this.readAction2D == 9) {
/* 801 */ SensorReadListener r = new ScaleListener2D(this.sensor2D, this.sensor6D);
/* */
/* 803 */ this.eventAgent.addSensorReadListener(this.sensor2D, r);
/* */ }
/* */
/* 807 */ int buttonCount = this.sensor2D.getSensorButtonCount();