1
NGUI 3 Documentation / Re: UIKeyBinding
« on: March 03, 2015, 05:21:16 AM »
None does not actually mean "None", it means "Any"...
I added the following code infor an option that actually means None:
and NoneAllowed in Modifier
I added the following code in
- IsModifierActive
- if (modifier == Modifier.NoneAllowed)
- return
- !(Input.GetKey(KeyCode.LeftAlt) ||
- Input.GetKey(KeyCode.RightAlt) ||
- Input.GetKey(KeyCode.LeftControl) ||
- Input.GetKey(KeyCode.RightControl) ||
- Input.GetKey(KeyCode.LeftShift) ||
- Input.GetKey(KeyCode.RightShift));
and NoneAllowed in Modifier