public byte[] exportValues() {
    	try {
	        byte[] exportValues = new byte[getExportSize()];
	        int currentIndex = 0;
	        
	        for (int i = 0; i < activeControllers.size(); i++) {
	        	JInputController indexedController = activeControllers.get(i);
	            
	            boolean success = indexedController.poll();
	            
	            // The joystick is no longer available - reset everything
	            if (!success) {
	            	System.exit(0);
	            }
	           
	        	exportValues[currentIndex++] = (byte)indexedController.getAxisValue(1);
                        exportValues[currentIndex++] = (byte)indexedController.getAxisValue(2);
                        exportValues[currentIndex++] = (byte)indexedController.getAxisValue(4);
                        exportValues[currentIndex++] = (byte)indexedController.getAxisValue(5);
                        exportValues[currentIndex++] = (byte)indexedController.getButton(0);
                        exportValues[currentIndex++] = (byte)indexedController.getButton(1);
                        exportValues[currentIndex++] = (byte)indexedController.getButton(2);
                        exportValues[currentIndex++] = (byte)indexedController.getButton(3);
                        exportValues[currentIndex++] = (byte)indexedController.getButton(4);
                        exportValues[currentIndex++] = (byte)indexedController.getButton(5);
                        exportValues[currentIndex++] = (byte)0;
                        exportValues[currentIndex++] = (byte)0;
                        exportValues[currentIndex++] = (byte)indexedController.getPov();
                        exportValues[currentIndex++] = (byte)indexedController.getButton(9);
                        exportValues[currentIndex++] = (byte)indexedController.getButton(10);
                        exportValues[currentIndex++] = (byte)indexedController.getButton(11);
                        exportValues[currentIndex++] = (byte)indexedController.getButton(12);
                        exportValues[currentIndex++] = (byte)indexedController.getButton(13);
                        exportValues[currentIndex++] = (byte)indexedController.getButton(14);
                        exportValues[currentIndex++] = (byte)indexedController.getButton(15);
                        exportValues[currentIndex++] = (byte)indexedController.getButton(16);
                        exportValues[currentIndex++] = (byte)indexedController.getButton(17);
                        exportValues[currentIndex++] = (byte)indexedController.getButton(18);
                        exportValues[currentIndex++] = (byte)indexedController.getButton(19);
	        }
	        
	        return exportValues;
    	}
    	catch (Exception e) {
    		System.exit(0);
    		return null;
    	}
    }