Show / Hide Table of Contents

Class WindowsSpaceMouseInputDeviceImp

SMI input device implementation for the Windows platform. This implementation directly sniffs at the render window's message pump (identified by the parameter passed to the constructor) to receive WM_POINTER messages.

Inheritance
System.Object
WindowsSpaceMouseInputDeviceImp
Implements
IInputDeviceImp
System.IDisposable
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 WindowsSpaceMouseInputDeviceImp : IInputDeviceImp, IDisposable

Constructors

WindowsSpaceMouseInputDeviceImp(GameWindow)

Initializes a new instance of the WindowsSpaceMouseInputDeviceImp class.

Declaration
public WindowsSpaceMouseInputDeviceImp(GameWindow gameWindow)
Parameters
Type Name Description
GameWindow gameWindow

The game window to hook on to receive WM_POINTER messages.

Fields

_RX

Descriptions of the available axes.

Declaration
public AxisImpDescription _RX
Field Value
Type Description
AxisImpDescription

_RY

Descriptions of the available axes.

Declaration
public AxisImpDescription _RY
Field Value
Type Description
AxisImpDescription

_RZ

Descriptions of the available axes.

Declaration
public AxisImpDescription _RZ
Field Value
Type Description
AxisImpDescription

_TX

Descriptions of the available axes.

Declaration
public AxisImpDescription _TX
Field Value
Type Description
AxisImpDescription

_TY

Descriptions of the available axes.

Declaration
public AxisImpDescription _TY
Field Value
Type Description
AxisImpDescription

_TZ

Descriptions of the available axes.

Declaration
public AxisImpDescription _TZ
Field Value
Type Description
AxisImpDescription

Properties

AxesCount

Returns the number of Axes this device implements.

Declaration
public int AxesCount { get; }
Property Value
Type Description
System.Int32

AxisImpDesc

Returns the descriptions for all axes of this device.

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

ButtonCount

This device does not reveal any Buttons.

Declaration
public int ButtonCount { get; }
Property Value
Type Description
System.Int32

ButtonImpDesc

Buttons are handled by the 3D Connexion interface.

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

Category

Returns the Category this device belongs in.

Declaration
public DeviceCategory Category { get; }
Property Value
Type Description
DeviceCategory

Desc

Returns the description of this implementation.

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

Id

Returns the name of the device.

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

Methods

Dispose()

Part of the dispose pattern.

Declaration
public void Dispose()

Dispose(Boolean)

Part of the Dispose pattern.

Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type Name Description
System.Boolean disposing

Finalize()

Declaration
protected void Finalize()

GetAxis(Int32)

Returns the current value of the axis {AxisID}.

Declaration
public float GetAxis(int iAxisId)
Parameters
Type Name Description
System.Int32 iAxisId
Returns
Type Description
System.Single

GetButton(Int32)

Button are handled by the 3DX interface.

Declaration
public bool GetButton(int iButtonId)
Parameters
Type Name Description
System.Int32 iButtonId
Returns
Type Description
System.Boolean

HandleMotion(Object, MotionEventArgs)

Event to listen to get the SDOF motion.

Declaration
public void HandleMotion(object sender, MotionEventArgs args)
Parameters
Type Name Description
System.Object sender
Fusee.Engine.Imp.Graphics.Desktop._3DconnexionDriver.MotionEventArgs args

Events

AxisValueChanged

All axes are event based.

Declaration
public event EventHandler<AxisValueChangedArgs> AxisValueChanged
Event Type
Type Description
System.EventHandler<AxisValueChangedArgs>

ButtonValueChanged

This device does not implement any Buttons.

Declaration
public event EventHandler<ButtonValueChangedArgs> ButtonValueChanged
Event Type
Type Description
System.EventHandler<ButtonValueChangedArgs>

Implements

IInputDeviceImp
System.IDisposable
Generated by DocFX
GitHub Repo
Back to top