You will have to buy the raphnet adapter for the Gamecube, since on that Z is select. Or build it yourself.
You must have some different gamecube adapter because the two I see on Amazon I have maps only l1/r1 to the z button, while the L2/r2 are the regular shoulders.