C# Class Axiom.Platforms.OpenTK.OpenTKInputReader

Platform management specialization
Inheritance: Axiom.Input.InputReader
Afficher le fichier Open project: WolfgangSt/axiom

Protected Properties

Свойство Type Description
isVisible bool
mouseButtons MouseButtons
mouseX int
oldX int
relMouseX int

Méthodes publiques

Méthode Description
Capture ( ) : void

Capture the current state of input.

Dispose ( ) : void
Initialize ( Axiom parent, bool useKeyboard, bool useMouse, bool useGamepad, bool ownMouse ) : void

IsKeyPressed ( KeyCodes key ) : bool

Checks the current keyboard state to see if the specified key is pressed.

IsMousePressed ( MouseButtons button ) : bool
OpenTKInputReader ( ) : System.Threading

Constructor.

Private Methods

Méthode Description
ConvertKeyEnum ( KeyCodes key ) : Key

Used to convert an Axiom.Input.KeyCodes enum val to a OpenTK enum val.

Method Details

Capture() public méthode

Capture the current state of input.
public Capture ( ) : void
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Initialize() public méthode

public Initialize ( Axiom parent, bool useKeyboard, bool useMouse, bool useGamepad, bool ownMouse ) : void
parent Axiom
useKeyboard bool
useMouse bool
useGamepad bool
ownMouse bool
Résultat void

IsKeyPressed() public méthode

Checks the current keyboard state to see if the specified key is pressed.
public IsKeyPressed ( KeyCodes key ) : bool
key KeyCodes KeyCode to check.
Résultat bool

IsMousePressed() public méthode

public IsMousePressed ( MouseButtons button ) : bool
button MouseButtons
Résultat bool

OpenTKInputReader() public méthode

Constructor.
public OpenTKInputReader ( ) : System.Threading
Résultat System.Threading

Property Details

isVisible protected_oe property

Is the opentk window currently visible?
protected bool isVisible
Résultat bool

mouseButtons protected_oe property

protected MouseButtons mouseButtons
Résultat MouseButtons

mouseX protected_oe property

protected int mouseX
Résultat int

oldX protected_oe property

protected int oldX
Résultat int

relMouseX protected_oe property

protected int relMouseX
Résultat int