I'm unaware of Portal 1 supporting controllers. However, all you should need to do is to put the PS3 controller into 'discoverable' mode using the button on it to connect, then use the BlueTooth menu and select "Setup Bluetooth Device", and follow the instructions.
TEG