I am working on a project written using Python and Pygame which uses a screen rotated to Portrait format. Using display_rotate=2 in the config.txt successfully rotates the display and the mouse, but seems to slow down display updates and cause an annoying diagonal line across the screen whenever I scroll or fade anything. It would probably work better to leave the display driver the normal orientation and rotate the pygame surfaces before blitting them to the screen, but I would then need to rotate the mouse. I can find how to do this from the desktop using xinput and 'Coordinate Transformation Matrix', but my program runs from the CLI, not desktop.
Anyone know how to do this please?