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

doNavigateHome = ->
  observer.navigateTo unity

class Debouncer
  constructor: (@timeout, @callback) ->
    @timer = null

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