/zoeplat

To get this branch, use:
bzr branch http://9ix.org/bzr/zoeplat

« back to all changes in this revision

Viewing changes to main.lua

  • Committer: Josh C
  • Date: 2013-03-09 05:15:15 UTC
  • Revision ID: josh@9ix.org-20130309051515-tgd962is9kse7kfo
don't quit w/ escape if debug console is up

Show diffs side-by-side

added added

removed removed

Lines of Context:
100
100
              --print(inspect(_(the.app):keys()))
101
101
           end,
102
102
   onUpdate = function (self, dt)
103
 
                 -- TODO: make this not work if debug console is active
104
 
                 if the.keys:justPressed('escape') then
 
103
                 if the.keys:justPressed('escape') and 
 
104
                   not self.console.visible then
105
105
                    love.event.quit()
106
106
                 end
107
107
              end