Author Topic: How do you tell if the right click was used to invoke OnClick()?  (Read 2870 times)

Disastercake

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 87
  • www.disastercake.com
    • View Profile
    • Disastercake
How do you tell if the right click was used to invoke OnClick()?
« 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?
« Last Edit: February 27, 2013, 12:45:57 AM by Disastercake »
Creator of Soul Saga.
http://www.disastercake.com

Disastercake

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 87
  • www.disastercake.com
    • View Profile
    • Disastercake
Re: How do you tell if the right click was used to invoke OnClick()?
« Reply #1 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.
« Last Edit: February 27, 2013, 12:57:49 AM by Disastercake »
Creator of Soul Saga.
http://www.disastercake.com