C# Class OVRInputControl.KeyInfo

Holds information about a single key event.
Show file Open project: leapmotion/ImageGrid

Public Properties

Property Type Description
deviceType DeviceType
downHandler OnKeyDown,
heldHandler OnKeyHeld
joystickAxis OVRGamepadController.Axis
joystickButton OVRGamepadController.Button
keyName string
mouseButton MouseButton,
threshold float
upHandler OnKeyUp
wasDown bool

Public Methods

Method Description
KeyInfo ( DeviceType inDeviceType, MouseButton, inMouseButton, OnKeyDown, inDownHandler, OnKeyHeld inHeldHandler, OnKeyUp inUpHandler ) : UnityEngine

Mouse button constructor.

KeyInfo ( DeviceType inDeviceType, OVRGamepadController, inJoystickButton, OnKeyDown, inDownHandler, OnKeyHeld inHeldHandler, OnKeyUp inUpHandler ) : UnityEngine

Joystick button constructor.

KeyInfo ( DeviceType inDeviceType, string inKeyName, OnKeyDown, inDownHandler, OnKeyHeld inHeldHandler, OnKeyUp inUpHandler ) : UnityEngine

Key constructor.

Method Details

KeyInfo() public method

Mouse button constructor.
public KeyInfo ( DeviceType inDeviceType, MouseButton, inMouseButton, OnKeyDown, inDownHandler, OnKeyHeld inHeldHandler, OnKeyUp inUpHandler ) : UnityEngine
inDeviceType DeviceType
inMouseButton MouseButton,
inDownHandler OnKeyDown,
inHeldHandler OnKeyHeld
inUpHandler OnKeyUp
return UnityEngine

KeyInfo() public method

Joystick button constructor.
public KeyInfo ( DeviceType inDeviceType, OVRGamepadController, inJoystickButton, OnKeyDown, inDownHandler, OnKeyHeld inHeldHandler, OnKeyUp inUpHandler ) : UnityEngine
inDeviceType DeviceType
inJoystickButton OVRGamepadController,
inDownHandler OnKeyDown,
inHeldHandler OnKeyHeld
inUpHandler OnKeyUp
return UnityEngine

KeyInfo() public method

Key constructor.
public KeyInfo ( DeviceType inDeviceType, string inKeyName, OnKeyDown, inDownHandler, OnKeyHeld inHeldHandler, OnKeyUp inUpHandler ) : UnityEngine
inDeviceType DeviceType
inKeyName string
inDownHandler OnKeyDown,
inHeldHandler OnKeyHeld
inUpHandler OnKeyUp
return UnityEngine

Property Details

deviceType public property

public DeviceType deviceType
return DeviceType

downHandler public property

public OnKeyDown, downHandler
return OnKeyDown,

heldHandler public property

public OnKeyHeld heldHandler
return OnKeyHeld

joystickAxis public property

public OVRGamepadController.Axis joystickAxis
return OVRGamepadController.Axis

joystickButton public property

public OVRGamepadController.Button joystickButton
return OVRGamepadController.Button

keyName public property

public string keyName
return string

mouseButton public property

public MouseButton, mouseButton
return MouseButton,

threshold public property

public float threshold
return float

upHandler public property

public OnKeyUp upHandler
return OnKeyUp

wasDown public property

public bool wasDown
return bool