Doloro GDK 22 .1.0 Beta
by Tauri Interactive
Doloro.Tools.InputService.InputDeviceDetector Class Reference

Detailed Description

Manager that checks what device player using to input.

Inheritance diagram for Doloro.Tools.InputService.InputDeviceDetector:
Collaboration diagram for Doloro.Tools.InputService.InputDeviceDetector:

Public Member Functions

Device CheckDevice ()
 Check the current active or last used device. More...
 
virtual bool IsMouseInput ()
 Check does mouse active at the moment. More...
 
virtual bool IsKeyboardInput ()
 Check does keyboard active at the moment. More...
 
virtual bool IsControllerInput ()
 Check does controller active at the moment. More...
 

Public Attributes

string[] mouseAxises = new string[] { "Mouse X", "Mouse Y" }
 Axis used for mouse move detection.
 
string[] controllerAxises = new string[] { "Vertical", "Horizontal" }
 Axises should be checked to detect controller input.
 

Protected Member Functions

virtual void Awake ()
 
virtual void Update ()
 

Properties

static InputDeviceDetector Active [get, protected set]
 Reference to stand alone instance of the manager.
 
Device Current [get, set]
 Last active device.
 

Events

static System.Action< InputDeviceDetectorDeviceChanged
 Event that will be called when device will be changed.
 

Member Function Documentation

◆ CheckDevice()

Device Doloro.Tools.InputService.InputDeviceDetector.CheckDevice ( )

Check the current active or last used device.

Returns
Current active device.

◆ IsControllerInput()

virtual bool Doloro.Tools.InputService.InputDeviceDetector.IsControllerInput ( )
virtual

Check does controller active at the moment.

Returns

◆ IsKeyboardInput()

virtual bool Doloro.Tools.InputService.InputDeviceDetector.IsKeyboardInput ( )
virtual

Check does keyboard active at the moment.

Returns

◆ IsMouseInput()

virtual bool Doloro.Tools.InputService.InputDeviceDetector.IsMouseInput ( )
virtual

Check does mouse active at the moment.

Returns

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