Class ImGuiInputImp
Inheritance
System.Object
ImGuiInputImp
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fusee.ImGuiImp.Desktop
Assembly: Fusee.ImGuiImp.Desktop.dll
Syntax
public class ImGuiInputImp : IInputDriverImp, IDisposable
Constructors
ImGuiInputImp(IRenderCanvasImp)
Declaration
public ImGuiInputImp(IRenderCanvasImp renderCanvas)
Parameters
| Type | Name | Description |
|---|---|---|
| IRenderCanvasImp | renderCanvas |
Properties
Devices
Devices supported by this driver: One mouse, one keyboard and up to four gamepads.
Declaration
public IEnumerable<IInputDeviceImp> Devices { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<IInputDeviceImp> |
DriverDesc
Returns a human readable description of this driver.
Declaration
public string DriverDesc { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
DriverId
Returns a (hopefully) unique ID for this driver. Uniqueness is granted by using the full class name (including namespace).
Declaration
public string DriverId { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
Dispose()
Declaration
public void Dispose()
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | disposing |
Finalize()
Declaration
protected void Finalize()
InitImGuiInput(GameWindow)
Declaration
public static void InitImGuiInput(GameWindow gw)
Parameters
| Type | Name | Description |
|---|---|---|
| GameWindow | gw |
UpdateImGuiInput(Vector2)
Declaration
public static void UpdateImGuiInput(Vector2 scaleFactor)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Numerics.Vector2 | scaleFactor |
Events
DeviceDisconnected
Not supported on this driver. Mouse and keyboard are considered to be connected all the time. You can register handlers but they will never get called.
Declaration
public event EventHandler<DeviceImpDisconnectedArgs> DeviceDisconnected
Event Type
| Type | Description |
|---|---|
| System.EventHandler<DeviceImpDisconnectedArgs> |
NewDeviceConnected
Not supported on this driver. Mouse and keyboard are considered to be connected all the time. You can register handlers but they will never get called.
Declaration
public event EventHandler<NewDeviceImpConnectedArgs> NewDeviceConnected
Event Type
| Type | Description |
|---|---|
| System.EventHandler<NewDeviceImpConnectedArgs> |
Implements
System.IDisposable