BUG: Windows Tablet Edition + Fullscreen + Pen Input

Hello,

Happy to report that pen input on windowed SDL applications work
great, unfortunately, I don’t have the same news for Fullscreen mode.
There appears to be something odd happening. Moving a usb mouse
hooked up to a tablet works great in both modes, so something with the
way Tablet edition does pen input doesn’t work correctly with SDL in
fullscreen mode.

The problem is that small movements (a few pixels) by the pen result
in LARGE movements being reported … as SDL_Event’s are polled. And
it happens very quickly. Moving accross the entire screen can happen
when you should have only moved 5-10 pixels if the application was in
windowed mode.

If I just leave move my pen VERY slow i can see the data being sent
is very “wiggly”. (i just hold it in place and the cursor wiggles
arround since I am not 100% still)

I cut my program down to:

// initialize SDL (graphics only)

SDL_Init( SDL_INIT_VIDEO );

// create screen (fullscreen or windowed for testing)

SDL_Surface *screen = SDL_SetVideoMode( 1024, 768, 24, SDL_HWSURFACE
); // |SDL_FULLSCREEN );

int quit = 0;
SDL_Event event;
// loop until escape hit
while (!quit) {
while (SDL_PollEvent(&event)) {
switch (event.type) {
case SDL_KEYDOWN:
if (event.key.keysym.sym == SDLK_ESCAPE) quit = 1;
break;
case SDL_MOUSEBUTTONDOWN:
case SDL_MOUSEBUTTONUP:
cout << event.button.x << " " << event.button.y << endl;
break;
case SDL_MOUSEMOTION:
cout << event.motion.x << " " << event.motion.y << endl;
break;
}
}
}
}

Anyone have any ideas?
Jesse

Happy to report that pen input on windowed SDL applications work
great, unfortunately, I don’t have the same news for Fullscreen mode.
There appears to be something odd happening. Moving a usb mouse
hooked up to a tablet works great in both modes, so something with the
way Tablet edition does pen input doesn’t work correctly with SDL in
fullscreen mode.

It sounds like a problem using it with DirectX. Does it work in games?

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment