среда, 5 июля 2017 г., 18:37:31 UTC+3 пользователь Daniel Foerster написал:
>
> Yeah that's not going to work because the attempted imports just fail. If 
> you think having the mouse not initialized might help, change your call to 
> pygame.init() into calls like pygame.display.init().
>

I tried pygame.display.init() already and that didn’t help, mouse pointer 
is still there and root rights are still required for the successful run...

четверг, 6 июля 2017 г., 2:22:41 UTC+3 пользователь Greg Ewing написал:
>
> Probably the framebuffer device is owned by root and only allows 
> access by root. Changing the permissions on /dev/fb might let 
> you avoid the need to run as root. 
>

I already changed permissions for the limited user (pi) according to this 
instruction: How do I let an SDL app (not running as root) use the console 
<https://unix.stackexchange.com/questions/58961/how-do-i-let-an-sdl-app-not-running-as-root-use-the-console>,
 
but to no avail :(


четверг, 6 июля 2017 г., 3:29:43 UTC+3 пользователь Alec Bennett написал:
>
> Why not just programmatically move the mouse offscreen? 
>
> Or change the mouse cursor to something invisible. Both are easy under wx 
> python, im guessing easy with pygame too. 
>

I know this is possible, there is even dedicated method 
pygame.mouse.set_visible(), but I need to eliminate mouse (or, better, any 
input device) initialization, because I want to run pygame without root 
rights and I believe skipping input devices initialization will let me do 
that.

Reply via email to