PixelCrushers.Wrappers.InputDeviceManager Class Reference

This script checks for joystick and keyboard input. More...

Inheritance diagram for PixelCrushers.Wrappers.InputDeviceManager:
Collaboration diagram for PixelCrushers.Wrappers.InputDeviceManager:

Additional Inherited Members

- Public Member Functions inherited from PixelCrushers.InputDeviceManager
delegate bool GetButtonDownDelegate (string buttonName)
 
delegate float GetAxisDelegate (string axisName)
 
void Awake ()
 
void Start ()
 
void SetInputDevice (InputDevice newDevice)
 
void Update ()
 
bool IsUsingJoystick ()
 
bool IsUsingMouse ()
 
void BrieflyIgnoreMouseMovement ()
 
bool IsUsingKeyboard ()
 
bool IsBackButtonDown ()
 
bool DefaultGetButtonDown (string buttonName)
 
float DefaultGetAxis (string axisName)
 
void SetCursor (bool visible)
 
- Static Public Member Functions inherited from PixelCrushers.InputDeviceManager
static bool IsButtonDown (string buttonName)
 
static float GetAxis (string axisName)
 
- Public Attributes inherited from PixelCrushers.InputDeviceManager
InputDevice inputDevice = InputDevice.Joystick
 
KeyCode[] joystickKeyCodesToCheck = new KeyCode[] { KeyCode.JoystickButton0, KeyCode.JoystickButton1, KeyCode.JoystickButton2, KeyCode.JoystickButton7 }
 
string[] joystickButtonsToCheck = new string[0]
 
string[] joystickAxesToCheck = new string[0]
 
float joystickAxisThreshold = 0.5f
 
string[] keyButtonsToCheck = new string[0]
 
KeyCode[] keyCodesToCheck = new KeyCode[] { KeyCode.Escape }
 
bool alwaysAutoFocus = false
 
bool detectMouseControl = true
 
float mouseMoveThreshold = 0.1f
 
bool controlCursorState = true
 
bool enforceCursorOnPause = false
 
bool controlGraphicRaycasters = true
 
KeyCode[] backKeyCodes = new KeyCode[] { KeyCode.JoystickButton1 }
 
string[] backButtons = new string[] { "Cancel" }
 
bool singleton = true
 
UnityEvent onUseKeyboard = new UnityEvent()
 
UnityEvent onUseJoystick = new UnityEvent()
 
UnityEvent onUseMouse = new UnityEvent()
 
UnityEvent onUseTouch = new UnityEvent()
 
GetButtonDownDelegate GetButtonDown = null
 
GetAxisDelegate GetInputAxis = null
 
- Properties inherited from PixelCrushers.InputDeviceManager
static InputDeviceManager instance [get, set]
 
static InputDevice currentInputDevice [get]
 
static bool deviceUsesCursor [get]
 
static bool autoFocus [get]
 
static bool isBackButtonDown [get]
 

Detailed Description

This script checks for joystick and keyboard input.

If the player uses a joystick, it enables autofocus. If the player uses the mouse or keyboard, it disables autofocus.


The documentation for this class was generated from the following file: