We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Separate mouse buttons for events

Home Forums Bug Reports and Feature Requests Separate mouse buttons for events

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #13174
    elk
    Customer

    Hi.

    Would it be possible to implement an option to chose what mouse button to use for different mouse events? For instance if you want to use right mouse button for movement/looking around, and left mouse button for interactions. I am using the first person camera and sometimes en up in positions where a clickable object takes up large parts of the screen so it becomes difficult to avoid when all mouse buttons will trigger it.

    #13180

    Hi,

    you can use the get event property puzzle to look up for which property of the mouse event.

    Chief 3D Verger | LinkedIn | Twitter

    #13184
    elk
    Customer

    Ahhh. Nice, was thinking that would only work with html events, but this is also built to behave consistently with the events of the Event category puzzles also then ?

    #13217

    Yep, you can retrieve the event property even if the event is assigned to a 3D object. This is the same event under the hood.

    Chief 3D Verger | LinkedIn | Twitter

    #13225
    elk
    Customer

    Excellent. Thanks Yuri :good:

    #13267
    elk
    Customer

    Hi.

    A quick followup to this. I tried with the “when dragged over” puzzle, and tried to limit that to just the left click (with “get event property”), but that will prevent me from rotation the view with right mouse button as it goes into the “when dragged over”-logic from the get go. Not a big deal for me right now, as I will probably not support this kind of interaction in my apps for now, but maybe it would be nice to have an option in that, or some kind of if statement built in to these puzzles to make them more flexible as to when the events get triggered and when you will just ignore it all together. There is probably ways to get around it, so just a small suggestion if you need something to put at the end of the TODO list :whistle:

    Another, maybe simpler, thing would be a puzzle to unregister and reregister events ….

    #13294

    we’ll think about this! :)

    Chief 3D Verger | LinkedIn | Twitter

    #13327
    elk
    Customer

    Thanks Yuri, that is all I wanted to hear. :good:

    #13487
    novator83
    Customer

    Hi,

    Maybe not good place to request this…
    What do you think about ability for middle mouse button/scroll to only be able to dragg editors ‘desktop’ and not moving puzzles around with this button?

    #13497

    Interesting idea! Let us think about this

    Chief 3D Verger | LinkedIn | Twitter

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.