 #
 # @class EyeJS
 
-module.exports = class EyeJS
+module.exports = class EyeJS extends EventEmitter
 
   constructor: (opts = {}) ->
 

      @smoothedX.push frame.avg.x
      @smoothedY.push frame.avg.y

      #console.log frame.avg.x, @smoothedX.top()

      @indicator.move @smoothedX.top(), @smoothedY.top()


SmoothingBuffer = require './SmoothingBuffer'
Indicator   = require './Indicator'
Connection  = require './Connection'
EventEmitter = (require 'events').EventEmitter

S_ALPHA = 0.2

