Update song preview on keyboard song changes

This commit is contained in:
Luke Hubmayer-Werner 2023-03-17 17:43:51 +10:30
parent 67f48fd0dc
commit 810020d374
1 changed files with 4 additions and 0 deletions

View File

@ -577,12 +577,16 @@ func _input(event):
MenuMode.SONG_SELECT:
if event.is_action_pressed('ui_right'): # Sadly can't use match with this input system
self.target_song_idx += 1
load_preview()
elif event.is_action_pressed('ui_left'):
self.target_song_idx -= 1
load_preview()
elif event.is_action_pressed('ui_up'):
selected_genre = posmod(selected_genre - 1, len(genres))
load_preview()
elif event.is_action_pressed('ui_down'):
selected_genre = posmod(selected_genre + 1, len(genres))
load_preview()
elif event.is_action_pressed('ui_page_up'):
selected_difficulty = int(max(0, selected_difficulty - 1))
elif event.is_action_pressed('ui_page_down'):