global constants + sampled mouse