Class RenderCanvasInputDriverImp
Input driver implementation for keyboard and mouse, as well as touch input in the browser.
Inheritance
System.Object
RenderCanvasInputDriverImp
Implements
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.Engine.Imp.Graphics.Blazor
Assembly: Fusee.Engine.Imp.Graphics.Blazor.dll
Syntax
public class RenderCanvasInputDriverImp : IInputDriverImp
Constructors
RenderCanvasInputDriverImp(IRenderCanvasImp, IJSRuntime)
Constructor. Use this in platform specific application projects.
Declaration
public RenderCanvasInputDriverImp(IRenderCanvasImp renderCanvas, IJSRuntime runtime)
Parameters
Type | Name | Description |
---|---|---|
IRenderCanvasImp | renderCanvas | The render canvas to provide mouse and keyboard input for. |
IJSRuntime | runtime |
Properties
Devices
Devices supported by this driver: One mouse and one keyboard.
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 |
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> |