BackupGGCode / grafx2

A pixelart-oriented painting program
0 stars 2 forks source link

Pen tablet and fullscreen not compatible #317

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Using a tablet in windowed mode works just as you'd expect, but when I 
switch to fullscreen it fails to translate properly. I chose the same 
resolution as I already have in Windows, 1366x768. The tablet's mapping 
area shrunk to a mere inch instead of the whole board as I had set it up, 
making it unusable. Everything else works fine.

I atleast thought I'd let you know. I'm guessing this is a problem with 
SDL's resolution handling and not in your design. 

Thanks for a great program!

grafx v2.1.1080
windows 7

Original issue reported on code.google.com by zoomula...@gmail.com on 16 Feb 2010 at 3:48

GoogleCodeExporter commented 9 years ago
Have you tried tweaking the mouse sensivity values in the config screen and/or 
the 
ini file ? They may help in such cases.

Original comment by pulkoma...@gmail.com on 16 Feb 2010 at 3:58

GoogleCodeExporter commented 9 years ago
I'll test with my tablet - I never saw the issue, but anyway I always use 
"relative"
tablet mode, and not often fullscreen.

Mouse sensitivity settings of Grafx2 shouldn't improve situation, as all 
settings
make the cursor slower (it's to avoid a problem of mouse too fast in fullscreen 
low
resolution)

Original comment by yrizoud on 16 Feb 2010 at 5:06

GoogleCodeExporter commented 9 years ago
On closer examination, it seems as if the tablet's output is interpreted as a 
delta 
value from a certain point on the board, rather than absolute position values. 
Eg, if I 
find the 0,0 spot, the mouse doesn't move, and if I put the pen just a bit 
right of it, 
the pointer moves slowly right without stopping. Move it back and it stops.
Could this be the problem?

Original comment by zoomula...@gmail.com on 16 Feb 2010 at 5:49

GoogleCodeExporter commented 9 years ago
I can reproduce it exactly as you last described.
It only happens in "tablet mode" and in fullscreen. When I set "mouse mode" 
(ie: I
can lift the pen and put it down someplace else, the cursor won't warp), the 
problem
doesn't happen.
Setting environment variable "SDL_MOUSE_RELATIVE=0", as seen on a forum, has no 
effect.
Investigating in the source code of SDL...

Original comment by yrizoud on 16 Feb 2010 at 11:38

GoogleCodeExporter commented 9 years ago
Found a fix in r1553. Enabling the sdl hardware cursor makes it work 
automatically. As we don't want the cursor to be visible, however, I set it to 
a 1x1 transparent square. So you can't see it.

Original comment by pulkoma...@gmail.com on 6 Aug 2010 at 1:41

GoogleCodeExporter commented 9 years ago
Awesome! I'll test it when I'm home.
I'm glad it's solved, because for serious tablet users, changing the mode from 
absolute to relative was simply not an option : It would be as if we developed 
a First Person Shooter where the user cannot choose "Invert mouse Y" setting.

The source code for the input in SDL was extremely hairy; I've made several 
tries to try change the behavior, but only made it worse. I abandoned long ago.

Original comment by yrizoud on 6 Aug 2010 at 2:07

GoogleCodeExporter commented 9 years ago
Tested on Win98, Wacom tablet : it works!

Original comment by yrizoud on 7 Aug 2010 at 7:51