Abstract. The use of hybrid dynamical systems to model gene regulation is impelled by the switch-like behaviour of the latter. Piecewise affine differential equations is one of the most extensively studied among such kind of models. We propose an extension of this class, introducing some input variables. A special focus is given to degradation and production rates being affine functions of the inputs. Some generic control problems are proposed, formulated in terms of an underlying discrete structure. Piecewise constant feedback laws that solve these problems are characterized in terms of affine inequalities. These general feedback laws are then applied to a well-known two dimensional example: the toggle switch. It is shown how to control this system toward various behaviours, especially bistability and bisimilarity with a discrete quotient.