title: Ruby Shoes: using .click on an image cannot tell left from right click
body: <p>I was trying to make an image that raises a number by one when left clicked and lowers it when right clicked.
  I was able to make shoes detect which button is clicked with the below code:</p>
  
  <pre><code>Shoes.app do
    @info = para "No button pressed."
    click do |button|
      @info.replace "#{button} was PRESSED."
    end
  end
  </code></pre>
  
  <p>And this works just fine. LMB is 1, RMB is 2, and MMB is 3.
  But when I try and detect a clicked image</p>
  
  <pre><code>Shoes.app do
    number = 0
    @image = image "image.png"
    @info = para "No button pressed."
    @image.click do |button|
      @info.replace "#{button} was PRESSED."
    end
  end
  </code></pre>
  
  <p>It seems to only be passing self. The result, regardless of button, is "(Shoes::Image) was pressed." I cannot find any way to get around this problem.</p>