User avatar
Posts: 49
Joined: Mon May 07, 2012 8:48 pm
Location: Settle, in the Yorkshire Dales
Contact: Website

Rotated screen and / or mouse - help please.

Thu Apr 26, 2018 1:46 pm

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?

Return to “Advanced users”