mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2025-01-31 20:50:36 +00:00
We need to swap mouse buttons 2 and 3 in X.
This commit is contained in:
parent
cddc97a121
commit
a0c361ea8a
3 changed files with 12 additions and 0 deletions
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue