Purple wire goes towards the top of the trackball. Purple,Red,Black,Green and Green,Black,Red,Yellow are the way mine are colored (top to bottom). The most you will have to do is switch the outer wires or, if your controller allows it, reverse the appropriate axes. The middle two wires are your power and ground.