Testalpha.c and a left-handed mouse user

Hi,

in win32, using the directx drivers only, the testalpha program draws a
yellow, alpha-blended ‘light’ sprite when mouse-button 1 is pressed and
a black rectangle if any other mouse button is pressed (including the
mouse wheel). This behaviour is reversed in fullscreen mode when the
mouse is set to left-handed.

X Window behaves as you would expect.

Looks like another DirectInput related problem.
Enclosed patch fixes it,

cheers,
John.
-------------- next part --------------
A non-text attachment was scrubbed…
Name: left-handed-mouse-patch.diff
Type: application/octet-stream
Size: 1364 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20020911/73aaff94/attachment.obj

Hi,

usually I use a unix utility called patch (the file is created
by a unix utility called diff).

If you are using windows, I can recommend UnxUtils:

http://www.weihenstephan.de/~syring/win32/UnxUtils.html

there is lots of documentation all over the web about how to use
these utilities or you can try e.g. ‘patch --help’ in a DOS box.

This patch is small enough to apply by hand though, all changes affect
just one file src/video/windx5/SDL_dx5events.c, and each change is in
context (there are a few lines of code before and after the actual
change). In this particular case all the changes are additions i.e.
extra lines.

If the patch is any good, Sam Lantinga usually okays it and
updates the CVS version of SDL so that others can use it,

cheers,
John.> ----- Original Message -----

From: rferrari@cce.com.br (Ricardo Ferrari))
To:
Sent: Wednesday, September 11, 2002 8:34 PM
Subject: RES: [SDL] testalpha.c and a left-handed mouse user

just one question
how can i apply this path?
i need some program or what?

tks
see ya

----- Mensagem original -----
De: John Popplewell [SMTP:@John_Popplewell]
Enviada em: quarta-feira, 11 de setembro de 2002 13:13
Para: sdl at libsdl.org
Assunto: [SDL] testalpha.c and a left-handed mouse user

Hi,

in win32, using the directx drivers only, the testalpha program draws a
yellow, alpha-blended ‘light’ sprite when mouse-button 1 is pressed and
a black rectangle if any other mouse button is pressed (including the
mouse wheel). This behaviour is reversed in fullscreen mode when the
mouse is set to left-handed.

X Window behaves as you would expect.

Looks like another DirectInput related problem.
Enclosed patch fixes it,

cheers,
John. << Arquivo: left-handed-mouse-patch.diff >>

Hi,

in win32, using the directx drivers only, the testalpha program draws a
yellow, alpha-blended ‘light’ sprite when mouse-button 1 is pressed and
a black rectangle if any other mouse button is pressed (including the
mouse wheel). This behaviour is reversed in fullscreen mode when the
mouse is set to left-handed.

X Window behaves as you would expect.

Looks like another DirectInput related problem.
Enclosed patch fixes it,

Thanks, your patch is applied to CVS. :slight_smile:

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