Property | Type | Description | |
---|---|---|---|
verbose | bool |
Method | Description | |
---|---|---|
AddInputHandler ( DeviceType dt, MouseButton, mouseButton, OnKeyDown, onDown, OnKeyHeld onHeld, OnKeyUp onUp ) : void |
Adds a handler for mouse button input.
|
|
AddInputHandler ( DeviceType dt, OVRGamepadController, joystickButton, OnKeyDown, onDown, OnKeyHeld onHeld, OnKeyUp onUp ) : void |
Adds a handler for joystick button input.
|
|
AddInputHandler ( DeviceType dt, string keyName, OnKeyDown, onDown, OnKeyHeld onHeld, OnKeyUp onUp ) : void |
Adds a handler for key input
|
|
AddInputMapping ( int joystickNumber, MonoBehaviour comp ) : void |
Adds a mapping from a joystick to a behavior.
|
|
ClearControlMappings ( ) : void |
Removes all control mappings.
|
|
GetJoystickAxis ( int joystickNumber, OVRGamepadController, axis ) : float |
Delegate for OVRGamepadController. Returns the current value of the specified joystick axis.
|
|
GetJoystickAxis ( int joystickNumber, string name ) : float |
Returns the current value of the joystick axis specified by the name parameter. The name should partially match the name of an axis specified in the Unity Edit -> Project Settings -> Input pane, minus the Platform: Joy #: qualifiers. For instance, specify "Left_X_Axis" to select the appropriate axis for the current platform. This will be permuted into something like "Win:Joy 1:Left_X_Axis" before it is queried.
|
|
GetJoystickButton ( int joystickNumber, OVRGamepadController, button ) : bool |
Delegate for OVRGamepadController. Returns true if the specified joystick button is pressed.
|
|
GetJoystickButton ( int joystickNumber, string name ) : bool |
Returns true if a joystick button is depressed. The name should partially match the name of an axis specified in the Unity Edit -> Project Settings -> Input pane, minus the Platform: Joy #: qualifiers. For instance, specify "Button A" to select the appropriate axis for the current platform. This will be permuted into something like "Win:Joy 1:Button A" before it is queried.
|
|
GetMouseButton ( MouseButton, button ) : bool | ||
ReadJoystickAxis ( OVRGamepadController, axis ) : float |
Delegate for OVRGamepadController. This only exists for legacy compatibility with OVRGamepadController.
|
|
ReadJoystickButton ( OVRGamepadController, button ) : bool |
Delegate for OVRGamepadController. This only exists for legacy compatibility with OVRGamepadController.
|
|
RemoveInputMapping ( int joystickNumber, MonoBehaviour comp ) : void |
Removes a mapping from a joystick to a behavior.
|
|
Update ( ) : void |
Updates the state of all input mappings. This must be called from a single MonoBehaviour's Update() method for input to be read.
|
Method | Description | |
---|---|---|
Init_Android ( ) : void |
Initializes the input system for Android.
|
|
Init_OSX ( ) : void |
Initializes the input system for OSX.
|
|
Init_OSX_Editor ( ) : void |
Initializes the input system for OSX when running from the Unity editor.
|
|
Init_Windows ( ) : void |
Initializes the input system for OSX.
|
|
Init_Windows_Editor ( ) : void |
Initializes the input system for Windows when running from the Unity editor.
|
|
Init_iPhone ( ) : void |
Initializes the input system for iPhone.
|
|
OVRInputControl ( ) : UnityEngine |
Static contructor for the OVRInputControl class.
|
|
ShowAxisValues ( ) : void |
Outputs debug spam for any non-zero axis. This is only used for finding which axes are which with new controllers.
|
|
ShowButtonValues ( ) : void |
Outputs debug spam for any depressed button. This is only used for finding which buttons are which with new controllers.
|
|
UpdateInputMapping ( int joystickNumber, MonoBehaviour comp ) : void |
Updates a single input mapping.
|
public static AddInputHandler ( DeviceType dt, MouseButton, mouseButton, OnKeyDown, onDown, OnKeyHeld onHeld, OnKeyUp onUp ) : void | ||
dt | DeviceType | |
mouseButton | MouseButton, | |
onDown | OnKeyDown, | |
onHeld | OnKeyHeld | |
onUp | OnKeyUp | |
return | void |
public static AddInputHandler ( DeviceType dt, OVRGamepadController, joystickButton, OnKeyDown, onDown, OnKeyHeld onHeld, OnKeyUp onUp ) : void | ||
dt | DeviceType | |
joystickButton | OVRGamepadController, | |
onDown | OnKeyDown, | |
onHeld | OnKeyHeld | |
onUp | OnKeyUp | |
return | void |
public static AddInputHandler ( DeviceType dt, string keyName, OnKeyDown, onDown, OnKeyHeld onHeld, OnKeyUp onUp ) : void | ||
dt | DeviceType | |
keyName | string | |
onDown | OnKeyDown, | |
onHeld | OnKeyHeld | |
onUp | OnKeyUp | |
return | void |
public static AddInputMapping ( int joystickNumber, MonoBehaviour comp ) : void | ||
joystickNumber | int | |
comp | MonoBehaviour | |
return | void |
public static ClearControlMappings ( ) : void | ||
return | void |
public static GetJoystickAxis ( int joystickNumber, OVRGamepadController, axis ) : float | ||
joystickNumber | int | |
axis | OVRGamepadController, | |
return | float |
public static GetJoystickAxis ( int joystickNumber, string name ) : float | ||
joystickNumber | int | |
name | string | |
return | float |
public static GetJoystickButton ( int joystickNumber, OVRGamepadController, button ) : bool | ||
joystickNumber | int | |
button | OVRGamepadController, | |
return | bool |
public static GetJoystickButton ( int joystickNumber, string name ) : bool | ||
joystickNumber | int | |
name | string | |
return | bool |
public static GetMouseButton ( MouseButton, button ) : bool | ||
button | MouseButton, | |
return | bool |
public static ReadJoystickAxis ( OVRGamepadController, axis ) : float | ||
axis | OVRGamepadController, | |
return | float |
public static ReadJoystickButton ( OVRGamepadController, button ) : bool | ||
button | OVRGamepadController, | |
return | bool |
public static RemoveInputMapping ( int joystickNumber, MonoBehaviour comp ) : void | ||
joystickNumber | int | |
comp | MonoBehaviour | |
return | void |