Welcome,
Guest
. Please
login
or
register
.
May 11, 2026, 10:47:28 PM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
How do you tell if the right click was used to invoke OnClick()?
« previous
next »
Print
Pages: [
1
]
Author
Topic: How do you tell if the right click was used to invoke OnClick()? (Read 2871 times)
Disastercake
Jr. Member
Thank You
-Given: 0
-Receive: 1
Posts: 87
www.disastercake.com
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
Input
.
GetKey
(
KeyCode
.
Mouse1
)
Input
.
GetKeyDown
(
KeyCode
.
Mouse1
)
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
»
Logged
Creator of Soul Saga.
http://www.disastercake.com
Disastercake
Jr. Member
Thank You
-Given: 0
-Receive: 1
Posts: 87
www.disastercake.com
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
»
Logged
Creator of Soul Saga.
http://www.disastercake.com
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
How do you tell if the right click was used to invoke OnClick()?