function Rotary(device){
  var self = this;
  InputEvent.apply(this, arguments);
  this.on('data', function(ev){
    // filting rotary event
    if(InputEvent.EVENT_TYPES.EV_REL == ev.type){
      switch(ev.value){
        case ROTARY_STATUS.ROTARY_LEFT:
          self.emit('left', ev);
          break;
        case ROTARY_STATUS.ROTARY_RIGHT:
          self.emit('right', ev);
          break;
      }
    }
  });
}
function Rotary(device){
  var self = this;
  InputEvent.apply(this, arguments);
  this.on('data', function(ev){
    
    if(InputEvent.EVENT_TYPES.EV_REL == ev.type){
      switch(ev.value){
        case ROTARY_STATUS.ROTARY_LEFT:
          self.emit('left', ev);
          break;
        case ROTARY_STATUS.ROTARY_RIGHT:
          self.emit('right', ev);
          break;
      }
    }
  });
}
function Rotary ( device ) { var self = this ; InputEvent . apply ( this , arguments ) ; this . on ( 'data' , function ( ev ) { // filting rotary event if ( InputEvent . EVENT_TYPES . EV_REL == ev . type ) { switch ( ev . value ) { case ROTARY_STATUS . ROTARY_LEFT : self . emit ( 'left' , ev ) ; break ; case ROTARY_STATUS . ROTARY_RIGHT : self . emit ( 'right' , ev ) ; break ; } } } ) ; }
[Rotary description]
@param {[type]} device [description]
[ Rotary description ]