Announcement

Collapse
No announcement yet.

Disable mouse right click event for pitch and roll

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Disable mouse right click event for pitch and roll

    Hi,

    Can anybody please tell me how to disable mouse right click event of pitch and roll.
    Thank you!

    Regards,
    Shashank M.

  • #2
    Code:
    ViewInputAttributes attrs =
        mapPanel.getView().getViewInputHandler().getAttributes();
    attrs.getActionMap( ViewInputAttributes.DEVICE_MOUSE ).getActionAttributes(ViewInputAttributes.VIEW_ROTATE ).setMouseActionListener( null );
    mapPanel.getView().getViewInputHandler().setAttributes( attrs );
    This should accomplish what you're trying to do.

    Comment


    • #3
      I am also looking for an answer to it. I also want to know about How do I disable right click on images? and How can I protect my pictures from being copied? flats in palarivattom I would be glad if you answer these questions too.

      Comment

      Working...
      X