Skip to content

Commit

Permalink
Fixed menu navigation bug
Browse files Browse the repository at this point in the history
  • Loading branch information
EliteAsian123 committed Apr 22, 2023
1 parent 37f94d7 commit 996b728
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
2 changes: 0 additions & 2 deletions Assets/Script/UI/DifficultySelect.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ private enum State {
private int optionCount;
private int selected;

private bool isSetlistMode = false;

public delegate void InstrumentSelectionAction(PlayerManager.Player playerInfo);
public static event InstrumentSelectionAction OnInstrumentSelection;

Expand Down
11 changes: 4 additions & 7 deletions Assets/Script/UI/SongSelect.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ private void Awake() {
// Create keyboard handler if no players are using it
if (!PlayerManager.players.Any((player) => player.inputStrategy.InputDevice == Keyboard.current)) {
var keyboard = Keyboard.current;
keyboardHandler = new()
{
keyboardHandler = new() {
InputDevice = keyboard,
microphoneIndex = -1,
botMode = false
Expand Down Expand Up @@ -209,11 +208,9 @@ private void Update() {

private void OnGenericNavigation(NavigationType navigationType, bool pressed) {
if (navigationType == NavigationType.UP || navigationType == NavigationType.DOWN) {
if (!directionHeld || direction != navigationType) {
direction = navigationType;
directionHeld = pressed;
inputTimer = INPUT_REPEAT_COOLDOWN;
}
direction = navigationType;
directionHeld = pressed;
inputTimer = INPUT_REPEAT_COOLDOWN;
}

if (!pressed) {
Expand Down

0 comments on commit 996b728

Please sign in to comment.