VOID_DataValue: Cycle backwards on right click.
[VOID.git] / VOID_DataValue.cs
blob:a/VOID_DataValue.cs -> blob:b/VOID_DataValue.cs
--- a/VOID_DataValue.cs
+++ b/VOID_DataValue.cs
@@ -154,7 +154,14 @@
 				{
 					float magLimit = Math.Max(magnitude, 6f);
 					magLimit = (float)Math.Ceiling(magLimit / 3f) * 3f;
-					digits = (ushort)((digits + 3) % (int)magLimit);
+					if (Event.current.button == 0)
+					{
+						digits = (ushort)((digits + 3) % (int)magLimit);
+					}
+					else if (Event.current.button == 1)
+					{
+						digits = (ushort)((digits - 3) % (int)magLimit);
+					}
 				}
 			}
 			else