Immerseum SDK: VR Simulator (version: BETA-0.9)
       [view as Desktop | Tablet | Mobile]
isKeyClicked(KeyCode) Method
The Unity KeyCode to check for. Can also accept an array or comma-delimited list of Unity KeyCodes.

Indicates whether the key indicated has been clicked (pushed down and released within the same frame).

Be careful! It is very rare for a key to actually be clicked since it is very hard to push down and release a key in the space of one frame. You might want to consider isKeyPressed instead.
Syntax
public static bool isKeyClicked( 
   UnityEngine.KeyCode key
)

Parameters

key
The Unity KeyCode to check for. Can also accept an array or comma-delimited list of Unity KeyCodes.

Return Value

true if one or more of the keys indicated was clicked, false if not.
See Also

Reference

InputActionManager Class
InputActionManager Members
Overload List

 

 


Copyright (c) 2015 Immerseum Inc. All rights reserved.

Send Feedback