C# 클래스 Fusion.Drivers.Input.InputDevice

상속: System.DisposableBase
파일 보기 프로젝트 열기: demiurghg/FusionEngine 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Game Game

공개 메소드들

메소드 설명
AddPressedKey ( Keys key ) : void

Adds key to hash list and fires KeyDown event

GetGamepad ( int playerIndex ) : Gamepad

Gets player's gamepad

IsKeyDown ( Keys key, bool ignoreInputMode = true ) : bool

Checks whether key is down

IsKeyUp ( Keys key ) : bool

Checks whether key is down

KeyboardHandle ( object sender, SharpDX.RawInput.KeyboardInputEventArgs e ) : void

Keyboard handler In general: http://molecularmusings.wordpress.com/2011/09/05/properly-handling-keyboard-input/ L/R shift: http://stackoverflow.com/questions/5920301/distinguish-between-left-and-right-shift-keys-using-rawinput

MouseHandler ( object sender, SharpDX.RawInput.MouseInputEventArgs e ) : void

Mouse handler

NotifyTouchDoubleTap ( System.Vector2 tapPosition ) : void
NotifyTouchManipulation ( System.Vector2 center, System.Vector2 delta, float scale ) : void
NotifyTouchSecondaryTap ( System.Vector2 tapPosition ) : void
NotifyTouchTap ( System.Vector2 tapPosition ) : void
RemovePressedKey ( Keys key ) : void

Removes key from hash list and fires KeyUp event

SetCursorImage ( string path ) : void

Loads cursor image from file

SetCursorVisibility ( bool visible ) : void

Sets cursor visibility

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Disposes stuff

비공개 메소드들

메소드 설명
EndUpdateInput ( ) : void

Should be called after everything is updated

Initialize ( ) : void
InputDevice ( Game game ) : System

Constrcutor

NotifyKeyDown ( Keys key, bool alt, bool shift, bool control ) : void
NotifyKeyPress ( char keyChar ) : void
NotifyKeyUp ( Keys key, bool alt, bool shift, bool control ) : void
RemoveAllPressedKeys ( ) : void

UpdateInput ( ) : void

Frame

메소드 상세

AddPressedKey() 공개 메소드

Adds key to hash list and fires KeyDown event
public AddPressedKey ( Keys key ) : void
key Keys
리턴 void

Dispose() 보호된 메소드

Disposes stuff
protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

GetGamepad() 공개 메소드

Gets player's gamepad
public GetGamepad ( int playerIndex ) : Gamepad
playerIndex int Player index from 0 to 3 inclusivly
리턴 Gamepad

IsKeyDown() 공개 메소드

Checks whether key is down
public IsKeyDown ( Keys key, bool ignoreInputMode = true ) : bool
key Keys
ignoreInputMode bool
리턴 bool

IsKeyUp() 공개 메소드

Checks whether key is down
public IsKeyUp ( Keys key ) : bool
key Keys
리턴 bool

KeyboardHandle() 공개 메소드

Keyboard handler In general: http://molecularmusings.wordpress.com/2011/09/05/properly-handling-keyboard-input/ L/R shift: http://stackoverflow.com/questions/5920301/distinguish-between-left-and-right-shift-keys-using-rawinput
public KeyboardHandle ( object sender, SharpDX.RawInput.KeyboardInputEventArgs e ) : void
sender object
e SharpDX.RawInput.KeyboardInputEventArgs
리턴 void

MouseHandler() 공개 메소드

Mouse handler
public MouseHandler ( object sender, SharpDX.RawInput.MouseInputEventArgs e ) : void
sender object
e SharpDX.RawInput.MouseInputEventArgs
리턴 void

NotifyTouchDoubleTap() 공개 메소드

public NotifyTouchDoubleTap ( System.Vector2 tapPosition ) : void
tapPosition System.Vector2
리턴 void

NotifyTouchManipulation() 공개 메소드

public NotifyTouchManipulation ( System.Vector2 center, System.Vector2 delta, float scale ) : void
center System.Vector2
delta System.Vector2
scale float
리턴 void

NotifyTouchSecondaryTap() 공개 메소드

public NotifyTouchSecondaryTap ( System.Vector2 tapPosition ) : void
tapPosition System.Vector2
리턴 void

NotifyTouchTap() 공개 메소드

public NotifyTouchTap ( System.Vector2 tapPosition ) : void
tapPosition System.Vector2
리턴 void

RemovePressedKey() 공개 메소드

Removes key from hash list and fires KeyUp event
public RemovePressedKey ( Keys key ) : void
key Keys
리턴 void

SetCursorImage() 공개 메소드

Loads cursor image from file
public SetCursorImage ( string path ) : void
path string
리턴 void

SetCursorVisibility() 공개 메소드

Sets cursor visibility
public SetCursorVisibility ( bool visible ) : void
visible bool
리턴 void

프로퍼티 상세

Game 공개적으로 프로퍼티

public Game Game
리턴 Game