Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Disastercake on February 27, 2013, 12:40:57 AM

Title: How do you tell if the right click was used to invoke OnClick()?
Post by: Disastercake on February 27, 2013, 12:40:57 AM
I'm using code where inside the OnClick() method I have tried
  1. Input.GetKey(KeyCode.Mouse1)
  1. Input.GetKeyDown(KeyCode.Mouse1)
  1. UICamera.currentTouchID == -2

But I am not registering correctly that I used the right click button to invoke the OnClick().  Is there a better way to check for this?
Title: Re: How do you tell if the right click was used to invoke OnClick()?
Post by: Disastercake on February 27, 2013, 12:53:02 AM
Got it fixed, user error on my part.   That's what I get for coding for 12 hours straight today.