jiayouxjh / grafx2

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

Mouse sensitivity too low in fullscreen high-resolution modes #324

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Mouse sensitivity is less effective under higher resolutions. I think this a 
problem with Ubuntu? Doesn't happen on our Windows PC, under Windows it's 
pretty much the same speed as the desktop cursor.

i.e
320x240 (fine)
640x512 (half-speed)
1280x1024 (quarter-speed)

Ubuntu
grafx2-2.2wip1374

Original issue reported on code.google.com by Rave...@googlemail.com on 3 Mar 2010 at 3:31

GoogleCodeExporter commented 9 years ago
I assume this is in fullscreen mode
There are sliders in Settings screen, that control mouse speed in fullscreen 
mode.
The normal setting is to have all sliders "up" : In this case, Grafx2 doesn't 
alter
the mouse movements as received by SDL.
If the sliders are pushed down, the mouse gets 2x, 3x or 4x slower. (This was 
design
to work around the problem of mouse too fast on Windows - SDL may behave 
differently
on other platforms)
When all sliders are on top position, is the mouse too fast or too slow in 320 
? and
in 1280 ?

Original comment by yrizoud on 3 Mar 2010 at 4:02

GoogleCodeExporter commented 9 years ago
Both sliders are at the top position, the mouse seems fine under 320 and much 
slower 
at 1280. The same sort of thing happens in other SDL apps on Ubuntu, I think.

Original comment by Rave...@googlemail.com on 3 Mar 2010 at 4:19

GoogleCodeExporter commented 9 years ago
Then I think I can't do anything within grafx2 :(
When mouse is too fast I can divide coordinates, but when it's too slow, 
multiplying
is wrong as it would make the mouse "miss" pixels 1, 3, 5, 7 ....

Workaround is to use windowed mode, enlarging it as much a possible; together 
with
pixel scaler "Double" to emulate resolution 640.

Maybe try SDL_VIDEO_X11_DGAMOUSE=0 before running grazx2... (probably 
unrelated. I
googled a little but didn't find a real match with your problem.)

Original comment by yrizoud on 3 Mar 2010 at 5:16

GoogleCodeExporter commented 9 years ago
SDL_VIDEO_X11_DGAMOUSE=0 fixed it, thanks. :-)

Couldn't get Ubuntu to do that automatically everytime though, so I've thrown 
it into 
a bash script for now:

#! /bin/bash
SDL_VIDEO_X11_DGAMOUSE=0 grafx2 /mode ?x? /quadruple

Original comment by Rave...@googlemail.com on 3 Mar 2010 at 6:22

GoogleCodeExporter commented 9 years ago
Glad it worked. The mysteries of SDL --'

Original comment by yrizoud on 4 Mar 2010 at 4:29

GoogleCodeExporter commented 9 years ago
Maybe we should set this variable ourselves using setenv() in the init code ?

Original comment by pulkoma...@gmail.com on 5 Mar 2010 at 7:31

GoogleCodeExporter commented 9 years ago
This seems to be a very isolate problem; Fullscreen high-resolution is common 
for SDL
games in Ubuntu, and yet there's no report of similar problem on the SDL boards.

Original comment by yrizoud on 5 Mar 2010 at 1:30