We need to swap mouse buttons 2 and 3 in X.

This commit is contained in:
Marcus Sundberg 2000-01-15 04:54:22 +00:00
parent cddc97a121
commit a0c361ea8a
3 changed files with 12 additions and 0 deletions

View file

@ -792,6 +792,8 @@ GetEvent(void)
case ButtonPress:
but = x_event.xbutton.button;
if (but == 2) but = 3;
else if (but == 3) but = 2;
switch(but) {
case 1:
case 2:
@ -802,6 +804,8 @@ GetEvent(void)
case ButtonRelease:
but = x_event.xbutton.button;
if (but == 2) but = 3;
else if (but == 3) but = 2;
switch(but) {
case 1:
case 2:

View file

@ -939,6 +939,8 @@ GetEvent(void)
case ButtonPress:
but = x_event.xbutton.button;
if (but == 2) but = 3;
else if (but == 3) but = 2;
switch(but) {
case 1:
case 2:
@ -949,6 +951,8 @@ GetEvent(void)
case ButtonRelease:
but = x_event.xbutton.button;
if (but == 2) but = 3;
else if (but == 3) but = 2;
switch(but) {
case 1:
case 2:

View file

@ -898,6 +898,8 @@ GetEvent(void)
case ButtonPress:
but = x_event.xbutton.button;
if (but == 2) but = 3;
else if (but == 3) but = 2;
switch(but) {
case 1:
case 2:
@ -908,6 +910,8 @@ GetEvent(void)
case ButtonRelease:
but = x_event.xbutton.button;
if (but == 2) but = 3;
else if (but == 3) but = 2;
switch(but) {
case 1:
case 2: