Show / Hide Table of Contents

Class WindowsSpaceMouseDriverImp

Input driver implementation supporting Windows 8 SpaceMouse input.

Inheritance
System.Object
WindowsSpaceMouseDriverImp
Implements
IInputDriverImp
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.Desktop
Assembly: Fusee.Engine.Imp.Graphics.Desktop.dll
Syntax
public class WindowsSpaceMouseDriverImp : IInputDriverImp

Constructors

WindowsSpaceMouseDriverImp(IRenderCanvasImp)

Initializes a new instance of the WindowsSpaceMouseDriverImp class.

Declaration
public WindowsSpaceMouseDriverImp(IRenderCanvasImp renderCanvas)
Parameters
Type Name Description
IRenderCanvasImp renderCanvas

The render canvas. Internally this must be a Windows canvas with a valid window handle.

Remarks

The current implementation does not fire the NewDeviceConnected and DeviceDisconnected events. This driver will always report one connected SpaceMouse no matter how many physical devices are connected to the machine. If no physical SpaceMouse is present all of its axes and buttons will return 0.

Exceptions
Type Condition
System.ArgumentNullException
System.ArgumentException

RenderCanvas must be of type RenderCanvasImp

Properties

Devices

Retrieves a list of devices supported by this input driver.

Declaration
public IEnumerable<IInputDeviceImp> Devices { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<IInputDeviceImp>

The list of devices.

Remarks

The devices yielded represent the current status. At any time other devices can connect or disconnect. Listen to the NewDeviceConnected and DeviceDisconnected events to get informed about new or vanishing devices. Drivers may implement "static" access to devices such that devices are connected at driver instantiation and never disconnected (in this case NewDeviceConnected and DeviceDisconnected are never fired).

DriverDesc

Gets the driver description string.

Declaration
public string DriverDesc { get; }
Property Value
Type Description
System.String

A human-readable string describing the driver.

DriverId

Gets the unique driver identifier.

Declaration
public string DriverId { get; }
Property Value
Type Description
System.String

The driver identifier.

Events

DeviceDisconnected

Not supported on this driver. The device is 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. The device is 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

IInputDriverImp
Generated by DocFX
GitHub Repo
Back to top