Tanoda
GILES.pb_InputManager Class Reference
Inheritance diagram for GILES.pb_InputManager:
GILES.pb_MonoBehaviourSingleton< pb_InputManager >

Public Member Functions

void SetEditor (pb_SceneEditor editor)
 

Static Public Member Functions

static void AddMouseInUseDelegate (MouseInUse del)
 
static void RemoveMouseInUseDelegate (MouseInUse del)
 
static void AddKeyInUseDelegate (KeyInUse del)
 
static void RemoveKeyInUseDelegate (KeyInUse del)
 
static pb_SceneEditor GetCurrentEditor ()
 
static bool IsMouseInUse ()
 
static bool IsKeyInUse ()
 

Public Attributes

pb_SceneEditor currentEditor
 
pb_SceneEditor _editor
 
MouseInUse mouseUsedDelegate = null
 
KeyInUse keyUsedDelegate = null
 

Protected Member Functions

override void Awake ()
 
virtual void Start ()
 
- Protected Member Functions inherited from GILES.pb_MonoBehaviourSingleton< pb_InputManager >
virtual void Initialize ()
 
virtual void Awake ()
 

Additional Inherited Members

- Properties inherited from GILES.pb_MonoBehaviourSingleton< pb_InputManager >
virtual bool dontDestroyOnLoad [get]
 Override to maintain an instance of this object across level loads. More...
 
static T instance [get]
 
static T nullableInstance [get]
 

Detailed Description

Responsible for handling mouse and keyboard input and feeding events to scene editor modes. When extending the runtime editor, you will register pb_SceneEditor objects with this class, which handles disabling the current editor and setting up the new.

Definition at line 16 of file pb_InputManager.cs.

Member Function Documentation

◆ AddKeyInUseDelegate()

static void GILES.pb_InputManager.AddKeyInUseDelegate ( KeyInUse  del)
static

Register a function to be called before keyboard input is sent to SceneEditor base, which if return is true prevents keyboard input from going to scene editor.

Definition at line 54 of file pb_InputManager.cs.

◆ AddMouseInUseDelegate()

static void GILES.pb_InputManager.AddMouseInUseDelegate ( MouseInUse  del)
static

Register a function to be called before mouse input is sent to SceneEditor base, which if return is true prevents mouse input from going to scene editor.

Definition at line 34 of file pb_InputManager.cs.

◆ Awake()

override void GILES.pb_InputManager.Awake ( )
protectedvirtual

On initialization, check that this is not a duplicate and set the instance value.

Reimplemented from GILES.pb_MonoBehaviourSingleton< pb_InputManager >.

Definition at line 112 of file pb_InputManager.cs.

◆ GetCurrentEditor()

static pb_SceneEditor GILES.pb_InputManager.GetCurrentEditor ( )
static

Return the scene editor that is currently in use.

Definition at line 101 of file pb_InputManager.cs.

◆ IsKeyInUse()

static bool GILES.pb_InputManager.IsKeyInUse ( )
static

If another script wants priority of keyboard presses, this will return true. Ex: If any UGUI control has focus.

Definition at line 174 of file pb_InputManager.cs.

◆ IsMouseInUse()

static bool GILES.pb_InputManager.IsMouseInUse ( )
static

If another script wants priority of mouse, this will return true.

Definition at line 165 of file pb_InputManager.cs.

◆ RemoveKeyInUseDelegate()

static void GILES.pb_InputManager.RemoveKeyInUseDelegate ( KeyInUse  del)
static

Remove a KeyInUseDelegate fuction.

Definition at line 65 of file pb_InputManager.cs.

◆ RemoveMouseInUseDelegate()

static void GILES.pb_InputManager.RemoveMouseInUseDelegate ( MouseInUse  del)
static

Remove a mouseInUseDelegate fuction.

Definition at line 45 of file pb_InputManager.cs.

◆ SetEditor()

void GILES.pb_InputManager.SetEditor ( pb_SceneEditor  editor)

Set the editor mode to editor. Classes inheriting pb_SceneEditor are the brains behind level editor interaction - they are fed events and input from pb_InputManager and can decide what to do with the pb_Scene from there.

Definition at line 87 of file pb_InputManager.cs.

◆ Start()

virtual void GILES.pb_InputManager.Start ( )
protectedvirtual

Load the camera reference and enable the default editor.

Definition at line 121 of file pb_InputManager.cs.

Member Data Documentation

◆ _editor

pb_SceneEditor GILES.pb_InputManager._editor

Definition at line 28 of file pb_InputManager.cs.

◆ currentEditor

pb_SceneEditor GILES.pb_InputManager.currentEditor

Definition at line 21 of file pb_InputManager.cs.

◆ keyUsedDelegate

KeyInUse GILES.pb_InputManager.keyUsedDelegate = null

Multi-cast delegate to be invoked when checking if keyboard input should be forwarded to the currently in-use scene editor.

Definition at line 80 of file pb_InputManager.cs.

◆ mouseUsedDelegate

MouseInUse GILES.pb_InputManager.mouseUsedDelegate = null

Multi-cast delegate to be invoked when checking if mouse input should be forwarded to the currently in-use scene editor.

Definition at line 74 of file pb_InputManager.cs.


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