Generally the longer lead goes to positive, but the Osram SFH485P is different:
the
longer lead goes to
negative (cathode). It is on the
flat side.
A quick test if your led is working, use your digital camera / preview screen.
A quick test if your Wii / Freetrack is working with IR-led, use a remote control, point it at your Wiimote and press a button and move it. Select one point model in Freetrack.