In a previous paper, we found that proton temperatures are clearly associated with the proton-scale turbulence in the solar wind, and magnetic helicity signature appears to be an important indicator in the association. Based on 15 years of in situ measurements, the present paper further investigates the magnetic helicity of solar wind turbulence and its role in regulating magnetic energy spectra and proton temperatures. Results show that the presence of the helicity signature is very common in solar wind turbulence at scales 0.3≲kρp≲1, with k being the wavenumber and ρp the proton gyroradius. The sign of the helicity is mostly positive, indicating the dominance of right-handed polarization of the turbulence. The helicity magnitude usually increases with k and β∥p (the proton parallel beta) when kρp and β∥p are less than unity. As helicity magnitude increases, the power index of the energy spectrum becomes more negative, and the proton temperatures T⊥p and T∥p rise significantly, where T⊥p and T∥p are the perpendicular and parallel temperatures with respect to the background magnetic field. In particular, the rise of T⊥p is faster than T∥p when β∥p<1 is satisfied. The faster rise of T⊥p with the helicity magnitude may be interpreted as the result of the preferentially perpendicular heating of solar wind protons by kinetic Alfvén wave (KAW) turbulence.