Reinstated debugger, but note UI events may start piling up in queue

This commit is contained in:
Dan Piponi 2019-05-26 11:27:16 -07:00
parent ba04d964a2
commit 10a7d8b344

View file

@ -125,16 +125,14 @@ handleKey atariKeys motion key = do
GameReset -> modify swchb $ bitAt 0 .~ not pressed
DumpState -> Emulation.dumpState
GameQuit -> liftIO $ exitSuccess
{- XXX Need to come back here!
EnterDebugger -> when pressed $ do
-- Throw away SDL events
-- Rewrite as a withXXX XXX
t <- liftIO $ forkIO $ let spin = SDL.pollEvents >> spin in spin
-- t <- liftIO $ forkIO $ let spin = SDL.pollEvents >> spin in spin
Emulation.dumpState
runDebugger
liftIO $ killThread t
-- liftIO $ killThread t
resetNextFrame
-}
DebugMode -> when pressed $ do
modify debugColours not
debugMode <- load debugColours