Mercurial > hg > forks > multipaint-js
comparison Interface.pde @ 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 | cd6450dceec2 |
children | b9b60552667e |
comparison
equal
deleted
inserted
replaced
107:0d0b384bac0f | 108:a9d8db1726c1 |
---|---|
881 if (realdraw == 0) { | 881 if (realdraw == 0) { |
882 if (moicon(xx + x, yy + y, 16 * g_uizoom, 16 * g_uizoom)) help(ad); | 882 if (moicon(xx + x, yy + y, 16 * g_uizoom, 16 * g_uizoom)) help(ad); |
883 } | 883 } |
884 if (doicon(xx + x, yy + y, 16 * g_uizoom, 16 * g_uizoom)) { | 884 if (doicon(xx + x, yy + y, 16 * g_uizoom, 16 * g_uizoom)) { |
885 //println(g_realbutton); | 885 //println(g_realbutton); |
886 if (ad == 'C' && g_realbutton == 39) ad = 'V'; | 886 if (ad == 'C' && g_realbutton == RIGHT) ad = 'V'; |
887 if (ad == 'B' && g_realbutton == 39) ad = 'Q'; | 887 if (ad == 'B' && g_realbutton == RIGHT) ad = 'Q'; |
888 if (ad == 'u' && g_realbutton == 39) ad = 'U'; | 888 if (ad == 'u' && g_realbutton == RIGHT) ad = 'U'; |
889 if (ad == 'n' && g_realbutton == 39) ad = 'N'; | 889 if (ad == 'n' && g_realbutton == RIGHT) ad = 'N'; |
890 if (ad == 'h' && g_realbutton == 39) ad = 'H'; | 890 if (ad == 'h' && g_realbutton == RIGHT) ad = 'H'; |
891 if (ad == 's' && g_realbutton == 39) ad = 'S'; | 891 if (ad == 's' && g_realbutton == RIGHT) ad = 'S'; |
892 if (ad == 'j' && g_realbutton == 39) ad = 'J'; | 892 if (ad == 'j' && g_realbutton == RIGHT) ad = 'J'; |
893 if (ad == 'g' && g_realbutton == 39) ad = 'G'; | 893 if (ad == 'g' && g_realbutton == RIGHT) ad = 'G'; |
894 if (ad == 'r' && g_realbutton == 39) ad = g_shift ? '(' : ')'; | 894 if (ad == 'r' && g_realbutton == RIGHT) ad = g_shift ? '(' : ')'; |
895 command(int(ad)); | 895 command(int(ad)); |
896 g_msgctr = 50; | 896 g_msgctr = 50; |
897 } | 897 } |
898 } | 898 } |
899 if (ad == ';') { | 899 if (ad == ';') { |