@@ -545,6 +545,8 @@ impl GameScene {
545
545
let now = tm. now ( ) ;
546
546
tm. speed = res. config . speed as _ ;
547
547
tm. resume ( ) ;
548
+ #[ cfg( target_os = "windows" ) ]
549
+ set_multitouch ( res. config . windows_multitouch_mode , true ) ;
548
550
tm. seek_to ( now - 3. ) ;
549
551
self . pause_rewind = Some ( tm. now ( ) - 0.2 ) ;
550
552
}
@@ -675,7 +677,11 @@ impl GameScene {
675
677
}
676
678
if self . res . config . touch_debug {
677
679
for touch in Judge :: get_touches ( ) {
678
- ui. fill_circle ( touch. position . x , touch. position . y , 0.04 , Color { a : 0.4 , ..RED } ) ;
680
+ let color = match touch. id < u64:: MAX - 3 {
681
+ true => Color { a : 0.4 , ..RED } ,
682
+ false => Color { a : 0.4 , ..YELLOW } ,
683
+ } ;
684
+ ui. fill_circle ( touch. position . x , touch. position . y , 0.04 , color) ;
679
685
}
680
686
}
681
687
for pos in & self . touch_points {
@@ -919,12 +925,16 @@ impl Scene for GameScene {
919
925
if matches ! ( self . state, State :: Playing ) {
920
926
self . music . play ( ) ?;
921
927
tm. resume ( ) ;
928
+ #[ cfg( target_os = "windows" ) ]
929
+ set_multitouch ( res. config . windows_multitouch_mode , true ) ;
922
930
}
923
931
} else if matches ! ( self . state, State :: Playing | State :: BeforeMusic ) {
924
932
if !self . music . paused ( ) {
925
933
self . music . pause ( ) ?;
926
934
}
927
935
tm. pause ( ) ;
936
+ #[ cfg( target_os = "windows" ) ]
937
+ set_multitouch ( res. config . windows_multitouch_mode , false ) ;
928
938
}
929
939
}
930
940
if Self :: interactive ( res, & self . state ) {
0 commit comments