 doNavigateHome = ->
   observer.navigateTo unity
 
+doStraightenView = ->
+  observer.setViewOffsetMatrix M.eye()
+  
 class Debouncer
   constructor: (@timeout, @callback) ->
     @timer = null

  '77A': doClearMemory
  #H
  '72': doNavigateHome
  
  
document.addEventListener "keydown", (e)->
  keyCode = "" + e.keyCode

    
  getViewCenter: ->@center
  getViewOffsetMatrix: ->@tfm
  setViewOffsetMatrix: (m) ->
    @tfm = m
    @renderGrid @tfm
  
  rebuildAt: (newCenter) ->
    @center = newCenter
