Receiving mouse clicks from panels

    Dec 02 2013 | 10:39 pm
    I'd like to have a coloured rectangular panel or button which can receive and report mouse clicks. I've looked at lcd and ubutton which are great but the problem is I want to deploy this panel in Mira and neither of these object can be put into a Mira frame (yet).
    I can put a panel object into a Mira frame but I can't figure out how to get it to report mouse events. Is there any way to do that? If not, are there any panel-like objects I can use instead?

    • Dec 03 2013 | 12:15 am
      pictslider maybe ?
    • Dec 03 2013 | 12:42 am
      Maybe [hover] and some clever routing of [mousestate] clicks when over a panel?
    • Dec 03 2013 | 2:00 pm
      Pedro -
      That is indeed very clever. ;-)
      Many thanks for that - it looks perfect.
    • Dec 03 2013 | 5:10 pm
      This was solved in a previous topic. Look here:
      My final solution uses a stack of objects to register mouse clicks as well as Mira touches.
    • Dec 03 2013 | 6:11 pm
      Xanadu -
      I did look at that thread when trying to solve my issue but it wasn't suitable for me as I don't want to use toggle switches in the mira.frame.
      I like the solution posted by Pedro using hover and mousestate so will probably go down that route.
    • Dec 03 2013 | 11:00 pm
      Unfortunately, the hover + mousestate approach isn't going to work with Mira because the iPad doesn't support the notion of hovering or mice. So apologies for framing my question poorly.
      As it happens, there's a solution built in to Mira which is the mira.multitouch object and
      Thanks for all the input, however.
    • Dec 03 2013 | 11:05 pm
      I did find it somewhat strange, but I thought that you wanted to have some kind of control on the computer with the mouse and replicate that state on the iPad with a mira compatible object (panel, in this case).
    • Dec 03 2013 | 11:09 pm
      Pedro -
      Not to worry, your example was still very useful. I think that combination of hover and mousestate is very powerful.