private void unRegisterListener(int sensorType) {
        SensorData sensorData = sensors.get(sensorType);
        if (sensorData != null) {
            if (sensorData.sensor != null) {
                sensorManager.unregisterListener(this, sensorData.sensor);
            }
            sensorData.enabled = false;
            sensorData.haveData = false;
            if (logger.isLoggable(Level.FINE)) {
                logger.log(Level.FINE, "SensorType: {0} deactivated, active: {1}",
                        new Object[]{sensorType, sensorData.enabled});
            }
        }
    }
Internal class to enclose data for each sensor.
jme3-android/src/main/java/com/jme3/input/android/AndroidSensorJoyInput.java