Class NeoFpsInputManagerBase
Inheritance
NeoFpsInputManagerBase
Assembly: NeoFPS.dll
public abstract class NeoFpsInputManagerBase : NeoFpsManager<NeoFpsInputManagerBase>
Properties
Declaration
public static bool captureMouseCursor { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
public static string connectedGamepad { get; }
Property Value
| Type |
Description |
| System.String |
|
Declaration
public static bool isGamepadConnected { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
public static int numGamepadProfiles { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
Declaration
public virtual bool showError { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
public virtual bool showWarning { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Declaration
public static bool wasCancelPressedThisFrame { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Methods
Declaration
protected abstract bool CheckForCancelInput()
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
protected abstract bool CheckForEscapeInput()
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
protected abstract string GetConnectedGamepad()
Returns
| Type |
Description |
| System.String |
|
Declaration
public static string GetGamepadProfileName(int index)
Parameters
| Type |
Name |
Description |
| System.Int32 |
index |
|
Returns
| Type |
Description |
| System.String |
|
Declaration
protected abstract string GetGamepadProfileNameInteral(int index)
Parameters
| Type |
Name |
Description |
| System.Int32 |
index |
|
Returns
| Type |
Description |
| System.String |
|
Declaration
protected abstract bool GetIsGamepadConnected()
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
protected abstract int GetNumGamepadProfiles()
Returns
| Type |
Description |
| System.Int32 |
|
Declaration
protected void HandleEscape()
Declaration
protected override void Initialise()
Overrides
NeoFPS.NeoFpsManager<NeoFPS.NeoFpsInputManagerBase>.Initialise()
Declaration
public override bool IsValid()
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
Declaration
protected override void OnDestroy()
Overrides
NeoFPS.NeoFpsManager<NeoFPS.NeoFpsInputManagerBase>.OnDestroy()
Declaration
protected void OnGamepadConnectedChanged(bool connected)
Parameters
| Type |
Name |
Description |
| System.Boolean |
connected |
|
Declaration
public static void PopEscapeHandler(UnityAction handler)
Parameters
| Type |
Name |
Description |
| UnityAction |
handler |
|
Declaration
public static void PushEscapeHandler(UnityAction handler)
Parameters
| Type |
Name |
Description |
| UnityAction |
handler |
|
Events
Declaration
public static event UnityAction<bool> onIsGamepadConnectedChanged
Event Type
| Type |
Description |
| UnityAction<System.Boolean> |
|