pombreda / pgreloaded

Automatically exported from code.google.com/p/pgreloaded
Other
0 stars 0 forks source link

Mouse tracking speed #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Using the "hello world" example in pygame2 docs (bottom of http://goo.gl/MWM6o) 
I can successfully init the video and get a mouse moving around the screen.

But I can't see a way in http://goo.gl/eJ8JS to make the mouse tracking speed 
any quicker (currently, there it is quite slow)

Any ideas?

Original issue reported on code.google.com by tom.medh...@gmail.com on 11 Nov 2010 at 2:58

GoogleCodeExporter commented 9 years ago
The mouse speed depends on the window manager/OS settings. If your mouse 
movement is slower within/on the pygame2 window,, this can indicate a general 
implementation issue of your code. Without an example, this is hard to 
determine, though.

Original comment by marcusvonappen@googlemail.com on 12 Nov 2010 at 6:46

GoogleCodeExporter commented 9 years ago
I don't have a window manager or gui at all. I have a vanilla archlinux install 
(text mode only) but have set the vga boot switch in grub (/boot/grub/menu.lst) 
to 789 which gives me a /dev/fb0.

The only gui is pygame2.

im guesting that I can't set the tracking speed of the mouse from grub?!?

With regard to the example, take a look at the first link I sent it contains 
the code I used. (The bottom two code snipers together)

Original comment by tom.medh...@gmail.com on 12 Nov 2010 at 9:02

GoogleCodeExporter commented 9 years ago
Will try setting SDL_VIDEO_X11_MOUSEACCEL when I have the machine infront of me 
and trying again.

Original comment by tom.medh...@gmail.com on 12 Nov 2010 at 9:38

GoogleCodeExporter commented 9 years ago
The documentation example you linked to does not contain any mouse event 
handling, so from that perspective, there is effectively no pygame2 code that 
could slow it down.

I doubt that the SDL_VIDEO_X11_MOUSEACCEL environment variable will bring a 
change, since it is used for X11/X.org based systems.

Regarding the mouse tracking speed, I am not sure, where to set it for 
console/framebuffer based devices, but you won't be able to adjust it from 
pygame2 or the underlying SDL implementation. It could be that the framebuffer 
driver and mouse event handler from SDL for framebuffers is not optimized. For 
further information, I recommend you to discuss potential issues on the 
relevant SDL lists and forums (http://libsdl.org/).

Original comment by marcusvonappen@googlemail.com on 12 Nov 2010 at 11:22

GoogleCodeExporter commented 9 years ago

Original comment by marcusvonappen@googlemail.com on 19 Nov 2010 at 7:10