C# Class Axiom.Platforms.OpenTK.OpenTKInputReader

Platform management specialization
Inheritance: Axiom.Input.InputReader
Datei anzeigen Open project: WolfgangSt/axiom

Protected Properties

Property Type Description
isVisible bool
mouseButtons MouseButtons
mouseX int
oldX int
relMouseX int

Public Methods

Method 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

Method Description
ConvertKeyEnum ( KeyCodes key ) : Key

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

Method Details

Capture() public method

Capture the current state of input.
public Capture ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

Initialize() public method

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

IsKeyPressed() public method

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

IsMousePressed() public method

public IsMousePressed ( MouseButtons button ) : bool
button MouseButtons
return bool

OpenTKInputReader() public method

Constructor.
public OpenTKInputReader ( ) : System.Threading
return System.Threading

Property Details

isVisible protected_oe property

Is the opentk window currently visible?
protected bool isVisible
return bool

mouseButtons protected_oe property

protected MouseButtons mouseButtons
return MouseButtons

mouseX protected_oe property

protected int mouseX
return int

oldX protected_oe property

protected int oldX
return int

relMouseX protected_oe property

protected int relMouseX
return int