title: Scala MouseEvent - How to know which button was pressed?
body: <p>I'm writing a scala application using scala swing. I can listen for <code>MouseClicked</code> to get notified whenever the mouse is clicked, but how do i know which button was pressed. The documentation is pretty bad, so i have looked in the Java documentation for <code>MouseEvent</code>, which says that the key can be retrieved from the modifiers field, so i tried to output the modifiers field of the scala <code>MouseClicked</code> event, which turned out to be an integer, 0 for left click, mouse button 3 and mouse button 4 and 256 for right click.</p>
  
  <p>It looks like it will work if i only need to know the difference between left and right click, but can i be sure the modifiers all ways work this way? The documentation says nothing, and for what i know modifiers could be affected by other things than just which mouse button was pressed. I would also like to know the difference between left click and mouse button 3 and 4. I don't think users expect them to do the same thing as left click.</p>
  
  <p>In the scala documentation there is a <code>MouseButtonEvent</code>, can this be used for anything? The documentation says nothing about what it does.</p>