[jak2] also allow analog for play select fast scroll (#3015)

This commit is contained in:
ManDude 2023-09-23 16:46:21 +01:00 committed by GitHub
parent 2e43e18e1d
commit 4871f5dfc7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2881,14 +2881,14 @@
)
)
;; og:preserve-this - Added to make scrolling these menus faster (jak3 has this)
((or (cpad-pressed? 0 left) (and (cpad-hold? 0 left) (>= (- (current-time) (-> obj last-move)) (seconds 0.075))))
((or (cpad-pressed? 0 left l-analog-left) (and (cpad-hold? 0 left l-analog-left) (>= (- (current-time) (-> obj last-move)) (seconds 0.075))))
(when (> (-> obj task-index) 0)
(set! (-> obj last-move) (current-time))
(set! s4-0 #t)
(set! (-> obj task-index) (max (- (-> obj task-index) 5) 0))
(set! (-> arg0 sliding-height) 0.0)))
;; og:preserve-this - Added to make scrolling these menus faster (jak3 has this)
((or (cpad-pressed? 0 right) (and (cpad-hold? 0 right) (>= (- (current-time) (-> obj last-move)) (seconds 0.075))))
((or (cpad-pressed? 0 right l-analog-right) (and (cpad-hold? 0 right l-analog-right) (>= (- (current-time) (-> obj last-move)) (seconds 0.075))))
(let ((max-task-index -1))
(dotimes (s2-0 (-> *game-info* play-list length))
(let* ((v1-41 (-> *game-info* play-list s2-0))