# File lib/as_event.rb, line 5
  def self.description(event_id)
    source = event_id & 15
    id = event_id>>4
    case source
    when 0: "key#{id}: (#{Keynames[id]})"
    when 1: "mbutton#{id}"
    when 2: "mouse motion: pos(#{AS::Event.mouse_pos.join(', ')}), rel(#{AS::Event.mouse_rel.join(', ')})"
    when (3..6): "joy#{source - 3} button#{id}"
    when (7..10): "joy#{source - 7} axis#{id}"
    when (11..14): "joy#{source - 11} hat#{id}"
    end         
  end