Results 1 to 7 of 7

Thread: Distinguish left and right click on a button

  1. #1

    Distinguish left and right click on a button

    It would be very helpful to pass an indicator the button function to tell if it was a left or a right click. Currently they are treated the same.

    This would allow us to
    a) ignore right clicks (player probably wanted to open the context menu of the parent object)
    b) treat a right click differently, e.g. left click = cycle through settings forward, right click = cycle through settings backward

  2. #2
    Seconded! This is at least a partial work around for my scripting. The existing right-click menus are nice and functional as far as they go, but "one size fits all" wastes a very useful option my scripting toolbox.

  3. #3
    +1, would like, but isn't this a cross-platform issue?

  4. #4
    Join Date
    Apr 2016
    Wait a second.. you can right click buttons?

  5. #5
    Giving this one a gentle bump

  6. #6
    Join Date
    Oct 2017
    Added: V10.5

    Button callbacks now have a third parameter which will be set to true if the button was right-clicked or long-pressed.

    More information:

  7. #7
    Many thanks, developers!

Similar Threads

  1. Can't Click Object Button
    By essbess in forum Scripting
    Replies: 14
    Last Post: 09-10-2017, 08:33 PM
  2. Make button click functions return button parameters and/or index
    By MrStump in forum Scripting Suggestions
    Replies: 0
    Last Post: 05-16-2017, 10:10 PM
  3. Player Name from Button Click?
    By ruseman in forum Scripting
    Replies: 3
    Last Post: 09-11-2016, 10:19 AM
  4. Button click functions
    By Shifty in forum Scripting
    Replies: 7
    Last Post: 09-05-2016, 08:58 PM
  5. [SOLVED] Unable to interact with non-scripted objects using mouse left click
    By Luneth in forum Technical Support
    Replies: 3
    Last Post: 07-10-2016, 08:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts