Click or drag to resize
GameInput Class
Provide high-level game input API.
Inheritance Hierarchy
SystemObject
  GeonBit.ManagersGameInput

Namespace:  GeonBit.Managers
Assembly:  GeonBit (in GeonBit.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class GameInput : IManager

The GameInput type exposes the following members.

Properties
  NameDescription
Public propertyAnyMouseButtonDown
Get if any mouse button is currently down.
Public propertyStatic memberInstance
Get time utils instance.
Public propertyMousePosition
Get mouse current position.
Public propertyMousePositionDiff
Get mouse position diff since last frame.
Public propertyMouseWheel
Get mouse wheel current value.
Public propertyMouseWheelDiff
Get mouse wheel diff from last frame.
Public propertyMovementVector
Get movement vector based on game keys currently pressed.
Top
Methods
  NameDescription
Public methodAssignKeyboardKeyToGameKey
Assign a keyboard key to a Game key.
Public methodAssignMouseButtonToGameKey
Assign a mouse button to a Game key.
Public methodDraw
Called every frame during the Draw() process.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodFixedUpdate
Called every constant X seconds during the Update() phase.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodCode exampleGetKeyboardInput
Read keyboard input into a string. Get one character at a time.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitialize
Initialize game input.
Public methodIsKeyboardKeyDown
Get if a key is currently down.
Public methodIsKeyboardKeyReleased
Get if a key was released in this very frame.
Public methodIsKeyDown
Get if a game key is currently down.
Public methodIsKeyPressed
Get if a game key was pressed down in this very frame.
Public methodIsKeyReleased
Get if a game key was released in this very frame.
Public methodIsMouseButtonDown
Get if mouse button is currently down.
Public methodLoadKeysLayout
Load current controls layout from config file.
Public methodMouseButtonReleased
Get if mouse button is was released on this frame.
Public methodMousePressed
Get if mouse button was pressed on this frame.
Public methodSaveKeysLayout
Write current controls layout to a config file.
Public methodSetDefaultFirstPersonControls
Set default keys for first-person controls.
Public methodSetDefaultIsometricControls
Set default keys for side-scroller controls.
Public methodSetDefaultSideScrollerControls
Set default keys for side-scroller controls.
Public methodSetDefaultTopDownControls
Set default keys for side-scroller controls.
Public methodSetMousePosition
Set mouse current position.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdate
Update input.
Top
See Also