C# 클래스 Axiom.Platforms.OpenTK.OpenTKInputReader

Platform management specialization
상속: Axiom.Input.InputReader
파일 보기 프로젝트 열기: WolfgangSt/axiom

보호된 프로퍼티들

프로퍼티 타입 설명
isVisible bool
mouseButtons MouseButtons
mouseX int
oldX int
relMouseX int

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
ConvertKeyEnum ( KeyCodes key ) : Key

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

메소드 상세

Capture() 공개 메소드

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

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Initialize() 공개 메소드

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

IsKeyPressed() 공개 메소드

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

IsMousePressed() 공개 메소드

public IsMousePressed ( MouseButtons button ) : bool
button MouseButtons
리턴 bool

OpenTKInputReader() 공개 메소드

Constructor.
public OpenTKInputReader ( ) : System.Threading
리턴 System.Threading

프로퍼티 상세

isVisible 보호되어 있는 프로퍼티

Is the opentk window currently visible?
protected bool isVisible
리턴 bool

mouseButtons 보호되어 있는 프로퍼티

protected MouseButtons mouseButtons
리턴 MouseButtons

mouseX 보호되어 있는 프로퍼티

protected int mouseX
리턴 int

oldX 보호되어 있는 프로퍼티

protected int oldX
리턴 int

relMouseX 보호되어 있는 프로퍼티

protected int relMouseX
리턴 int