SDLvncviewer: fix button handling

For some reason, I swapped buttons 2 and 3 on Dec 7, 2005, in commit
"translate keys based on unicode (much more reliable than sym)".
I do not remember why, nor what I smoked, but this was wrong.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
pull/1/head
dscho 16 years ago
parent 2530c5fa4c
commit e526c4816b

@ -1,3 +1,7 @@
2008-02-02 Johannes E. Schindelin <Johannes.Schindelin@gmx.de>
* client_examples/SDLvncviewer.c: fix buttons (2 & 3 were switched),
fix Tab key, and fix Ctrl+<letter>
2008-01-29 Christian Ehrlicher <Ch.Ehrlicher@gmx.de> 2008-01-29 Christian Ehrlicher <Ch.Ehrlicher@gmx.de>
* libvncserver/rfbserver.c: add missing #include <time.h> * libvncserver/rfbserver.c: add missing #include <time.h>

@ -4,7 +4,6 @@ immediate:
Implement ZYWRLE decoding in libvncclient Implement ZYWRLE decoding in libvncclient
make SDLvncviewer more versatile (test for missing keys, introduce scrollbars, make SDLvncviewer more versatile (test for missing keys, introduce scrollbars,
make scrollable with 2xCtrl and mouse drag) make scrollable with 2xCtrl and mouse drag)
- 2nd and 3rd mouse button are switched
Clean up ZRLE (probably not thread-safe: zrleBeforeBuf, zrlePaletteHelper) Clean up ZRLE (probably not thread-safe: zrleBeforeBuf, zrlePaletteHelper)
style fixes: use Linux' coding guidelines & ANSIfy tightvnc-filetransfer: style fixes: use Linux' coding guidelines & ANSIfy tightvnc-filetransfer:
discuss on list discuss on list

@ -3,8 +3,8 @@
struct { int sdl; int rfb; } buttonMapping[]={ struct { int sdl; int rfb; } buttonMapping[]={
{1, rfbButton1Mask}, {1, rfbButton1Mask},
{3, rfbButton2Mask}, {2, rfbButton2Mask},
{2, rfbButton3Mask}, {3, rfbButton3Mask},
{0,0} {0,0}
}; };

Loading…
Cancel
Save