 		}
 
 		public function getDeviceTypeAt(__index:uint):String {
-			return gameInputDeviceDefinitions.length > __index && gameInputDeviceDefinitions[__index] != null ? gameInputDeviceDefinitions[__index].id : null;
+			return gameInputDeviceDefinitions.length > __index && gameInputDeviceDefinitions[__index] != null ? gameInputDeviceDefinitions[__index].getType() : null;
 		}
 	}
 }

		controls = {};
		controlsSplit = {};
		keys = new Vector.<AutoGamepadControlKeyInfo>();
	}
}



						gamepadInfo = new AutoGamepadInfo();
						gamepadInfo.id          = jjs;
						gamepadInfo.platformId  = iis;
						gamepadInfo.nameFilter  = arrayToStringVector(gamepadObj["filters"]["name"]);

						platformInfo.gamepads.push(gamepadInfo);
