You are right, your input should be $\gamma$. However the control of $\theta$ is important. To combine both variables, typically a nested control structure is adopted.
For this, two control loops, an outer loop and and inner loop is connected in series. I have drawn a short sketch

Here you can see that the climb angle error $\Delta \gamma = \gamma_{cmd} - \gamma$ (the difference between the measured and commanded climb angle) is fed to the outer loop, which calculates a pitch command. The pitch error is then calculated by $\Delta \theta = \theta_{cmd} - \theta$. This pitch command is then fed to the inner loop controller which finally computes an elevator deflection for the aircraft.
In most applications the outer and inner loops are simple PID controllers, which are gain-scheduled over the flight envelope. Additionally it should be noted that the inner loops itself is often divided into a rate controller (controlling the rotational rate $q$ for the pitch axis) and and attitude controller controlling $\theta$.
However, this should serve as a general overview how controlling pitch and the flight path angle at the same time can be achieved.