mirror of
https://github.com/Yonokid/PyTaiko.git
synced 2026-02-04 11:40:13 +01:00
Added the ability to use the scroll wheel in the song select
This commit is contained in:
@@ -480,13 +480,14 @@ class SongSelectPlayer:
|
|||||||
audio.play_sound('skip', 'sound')
|
audio.play_sound('skip', 'sound')
|
||||||
return "skip_right"
|
return "skip_right"
|
||||||
|
|
||||||
|
wheel = ray.get_mouse_wheel_move()
|
||||||
# Navigate left
|
# Navigate left
|
||||||
if is_l_kat_pressed(self.player_num):
|
if is_l_kat_pressed(self.player_num) or wheel > 0:
|
||||||
audio.play_sound('kat', 'sound')
|
audio.play_sound('kat', 'sound')
|
||||||
return "navigate_left"
|
return "navigate_left"
|
||||||
|
|
||||||
# Navigate right
|
# Navigate right
|
||||||
if is_r_kat_pressed(self.player_num):
|
if is_r_kat_pressed(self.player_num) or wheel < 0:
|
||||||
audio.play_sound('kat', 'sound')
|
audio.play_sound('kat', 'sound')
|
||||||
return "navigate_right"
|
return "navigate_right"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user