When recording while playing a video game, e.g. Minecraft, the application may use raw input which doesn't allow Pynput to read the mouse events.