File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -545,6 +545,7 @@ 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" ) ]
548
549
set_multitouch ( res. config . windows_multitouch_mode , true ) ;
549
550
tm. seek_to ( now - 3. ) ;
550
551
self . pause_rewind = Some ( tm. now ( ) - 0.2 ) ;
@@ -924,13 +925,15 @@ impl Scene for GameScene {
924
925
if matches ! ( self . state, State :: Playing ) {
925
926
self . music . play ( ) ?;
926
927
tm. resume ( ) ;
928
+ #[ cfg( target_os = "windows" ) ]
927
929
set_multitouch ( res. config . windows_multitouch_mode , true ) ;
928
930
}
929
931
} else if matches ! ( self . state, State :: Playing | State :: BeforeMusic ) {
930
932
if !self . music . paused ( ) {
931
933
self . music . pause ( ) ?;
932
934
}
933
935
tm. pause ( ) ;
936
+ #[ cfg( target_os = "windows" ) ]
934
937
set_multitouch ( res. config . windows_multitouch_mode , false ) ;
935
938
}
936
939
}
You can’t perform that action at this time.
0 commit comments