summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordscho <dscho>2008-02-02 03:57:12 +0000
committerdscho <dscho>2008-02-02 03:57:12 +0000
commite526c4816bad7f5ce4233c4894fdc2f56a23e0d7 (patch)
tree3580bb14942dad6d9f96e6ccffde7df0beb00b45
parent2530c5fa4cc468207180329c79fc74a0fa4e016d (diff)
downloadlibtdevnc-e526c481.tar.gz
libtdevnc-e526c481.zip
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>
-rw-r--r--ChangeLog4
-rw-r--r--TODO1
-rw-r--r--client_examples/SDLvncviewer.c4
3 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 7c06eb5..0651240 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
* libvncserver/rfbserver.c: add missing #include <time.h>
diff --git a/TODO b/TODO
index 8b1dd69..9dbc359 100644
--- a/TODO
+++ b/TODO
@@ -4,7 +4,6 @@ immediate:
Implement ZYWRLE decoding in libvncclient
make SDLvncviewer more versatile (test for missing keys, introduce scrollbars,
make scrollable with 2xCtrl and mouse drag)
- - 2nd and 3rd mouse button are switched
Clean up ZRLE (probably not thread-safe: zrleBeforeBuf, zrlePaletteHelper)
style fixes: use Linux' coding guidelines & ANSIfy tightvnc-filetransfer:
discuss on list
diff --git a/client_examples/SDLvncviewer.c b/client_examples/SDLvncviewer.c
index 4154887..8a006fd 100644
--- a/client_examples/SDLvncviewer.c
+++ b/client_examples/SDLvncviewer.c
@@ -3,8 +3,8 @@
struct { int sdl; int rfb; } buttonMapping[]={
{1, rfbButton1Mask},
- {3, rfbButton2Mask},
- {2, rfbButton3Mask},
+ {2, rfbButton2Mask},
+ {3, rfbButton3Mask},
{0,0}
};