changeset 108:a9d8db1726c1

Use the constant for RIGHT mouse button instead of magic number.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 06 Jul 2018 06:40:43 +0300
parents 0d0b384bac0f
children b9b60552667e
files Interface.pde
diffstat 1 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/Interface.pde	Fri Jul 06 06:22:21 2018 +0300
+++ b/Interface.pde	Fri Jul 06 06:40:43 2018 +0300
@@ -883,15 +883,15 @@
             }
             if (doicon(xx + x, yy + y, 16 * g_uizoom, 16 * g_uizoom)) {
                 //println(g_realbutton);
-                if (ad == 'C' && g_realbutton == 39) ad = 'V';
-                if (ad == 'B' && g_realbutton == 39) ad = 'Q';
-                if (ad == 'u' && g_realbutton == 39) ad = 'U';
-                if (ad == 'n' && g_realbutton == 39) ad = 'N';
-                if (ad == 'h' && g_realbutton == 39) ad = 'H';
-                if (ad == 's' && g_realbutton == 39) ad = 'S';
-                if (ad == 'j' && g_realbutton == 39) ad = 'J';
-                if (ad == 'g' && g_realbutton == 39) ad = 'G';
-                if (ad == 'r' && g_realbutton == 39) ad = g_shift ? '(' : ')';
+                if (ad == 'C' && g_realbutton == RIGHT) ad = 'V';
+                if (ad == 'B' && g_realbutton == RIGHT) ad = 'Q';
+                if (ad == 'u' && g_realbutton == RIGHT) ad = 'U';
+                if (ad == 'n' && g_realbutton == RIGHT) ad = 'N';
+                if (ad == 'h' && g_realbutton == RIGHT) ad = 'H';
+                if (ad == 's' && g_realbutton == RIGHT) ad = 'S';
+                if (ad == 'j' && g_realbutton == RIGHT) ad = 'J';
+                if (ad == 'g' && g_realbutton == RIGHT) ad = 'G';
+                if (ad == 'r' && g_realbutton == RIGHT) ad = g_shift ? '(' : ')';
                 command(int(ad));
                 g_msgctr = 50;
             }