Click or drag to resize

InputDevice Class

Input device instances expose access to underlying physical input devices such as mouse, keyboard, game pads etc. Users can either poll axis values or button state from an Input device or add event listeners reacting on value or state changes, no matter how the underlying physical device provides axis or button data. Additionally users can define their own axes by specifying calculation rules how to generate values from existing axes or buttons.
Inheritance Hierarchy

Namespace:  Fusee.Engine.Core
Assembly:  Fusee.Engine.Core (in Fusee.Engine.Core.dll) Version: 0.7.0.0 (0.7.0.0)
Syntax
C#
public class InputDevice

The InputDevice type exposes the following members.

Properties
  NameDescription
Public propertyAxesCount
Gets number of axes supported by this device.
Public propertyAxisDesc
Gets a description of the axis. This value can be used in user setup-dialogs or to match axes of devices of different categories.
Public propertyButtonCount
Gets the number of buttons supported by this device.
Public propertyButtonDesc
Gets the name of the button. This value can be used in user setup-dialogs or to match buttons of devices of different categories.
Public propertyCategory
Gets the category of this device. Device categories define a minimal common set of buttons and axes which are identical across all devices sharing the same category.
Public propertyDesc
Gets the human readable description of this device. This parameter can be used in user dialogs to identify devices.
Public propertyId
Gets an identifier. Implementors take care that this id is unique across all devices managed by a driver.
Public propertyIsConnected
Gets or sets a value indicating whether this device is connected.
Public propertyNewAxisID
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetAxis
Gets the value currently present at the given axis.
Public methodGetAxisDescription
Retrieves a description for the given axis
Public methodGetButton
Gets the current state of the given button.
Public methodGetButtonDescription
Retrieves a description for the given button.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsButtonDown
Determines whether the button was pressed down right before or during the current frame. This value is true only for one frame even if the button is pressed longer than one frame.
Public methodIsButtonUp
Determines whether the button was released right before or during the current frame. This value is true only for one frame even if the button is released longer than one frame.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodPostRender
Public methodRegisterCalculatedAxis
Registers a calculated axis. Calculated axes behave like axes exposed by the underlying hardware device but can be calculated from one or more existing axes or buttons.
Public methodRegisterSingleButtonAxis
Registers a calculated axis from a button. The axis' value changes between 0 and 1 as the user hits the button or releases it. The time it takes to change the value can be set.
Public methodRegisterTwoButtonAxis
Registers a calculated axis from two buttons. The axis' value changes between -1 and 1 as the user hits the button or releases it. The time it takes to change the value can be set.
Public methodRegisterVelocityAxis
Registers a calculated axis exhibiting the derivative after the time (Velocity) of the value on the specified original axis.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventAxisValueChanged
Occurs when the value of a given axis has changed.
Public eventButtonValueChanged
Occurs when the value of a given button has changed.
Top
See Also