Skip to content

Commit

Permalink
Actually disable handedness
Browse files Browse the repository at this point in the history
  • Loading branch information
LumpBloom7 committed Jan 28, 2021
1 parent e39504a commit a571327
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ public class TouchVisualization : CompositeDrawable
private DrawablePool<TouchPointer> pointerPool;


private int leftCount;
private int rightCount;
//private int leftCount;
//private int rightCount;

public Dictionary<TouchSource, TouchPointer> InUsePointers = new Dictionary<TouchSource, TouchPointer>();

Expand Down Expand Up @@ -55,7 +55,7 @@ protected override void Update()
{
bool useLeftHand = false;

if (newPos.X < 0)
/* if (newPos.X < 0)
{
if (leftCount <= rightCount)
useLeftHand = true;
Expand All @@ -69,7 +69,7 @@ protected override void Update()
if (useLeftHand) ++leftCount;
else ++rightCount;
Console.WriteLine(leftCount + ", " + rightCount);

*/
AddInternal(pointer = pointerPool.Get());
pointer.Scale = new Vector2(useLeftHand ? -1 : 1, 1);
InUsePointers[point] = pointer;
Expand Down

0 comments on commit a571327

Please sign in to comment.