You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think I found a bug in ControllerMenuStage for the case where I want to use UP and DOWN keys to navigate buttons placed above each other for a jam game. And I found it was skipping some buttons on the way down, and other buttons on the way up. The buttons have different width.
In line 484 it should read 'north' because 'south' is already covered in the previous line.
new Vector2(direction == MoveFocusDirection.west ? currentActor.getWidth() :
direction == MoveFocusDirection.east ? 0 : currentActor.getWidth() / 2,
direction == MoveFocusDirection.south ? currentActor.getHeight() :
direction == MoveFocusDirection.south ? 0 : currentActor.getHeight() / 2));
In line 519 the horizontal distance is emphasized if you are moving north or south. This should probably read east or west.
if (direction == MoveFocusDirection.south || direction == MoveFocusDirection.north)
horizontalDist = horizontalDist * directionEmphFactor;
else
verticalDist = verticalDist * directionEmphFactor;
The text was updated successfully, but these errors were encountered:
I think I found a bug in ControllerMenuStage for the case where I want to use UP and DOWN keys to navigate buttons placed above each other for a jam game. And I found it was skipping some buttons on the way down, and other buttons on the way up. The buttons have different width.
In line 484 it should read 'north' because 'south' is already covered in the previous line.
In line 519 the horizontal distance is emphasized if you are moving north or south. This should probably read east or west.
The text was updated successfully, but these errors were encountered: