In this paper, a state-feedback linear-quadratic regulator (LQR) is proposed for event-based control of a linear system. An interesting property of LQRs is that an optimal response of the system can be obtained in accordance to some specifications, like the actuator limits. An integral action is also added in order to not only restrict the study to null stabilization but also to tracking. The idea is to consider an external control loop and stabilize the integral of the error between the measurement and a desired setpoint to track. However, an event-triggered integral can lead to important overshoots when the interval between two successive events becomes large. Therefore, an exponential forgetting factor of the sampling interval is proposed as a solution to avoid such problems. The whole proposal is tested on a real-time system (a gyroscope) in order to highlight its ability, the reduction of control updates and the respect to the actuator limits.