C# 클래스 Artemis.Engine.Input.KeyboardInput

The main keyboard input provider class.
파일 보기 프로젝트 열기: ArtemisEngine/Artemis-Engine 1 사용 예제들

공개 메소드들

메소드 설명
IsClicked ( KeyCombination keys ) : bool

Check if a combination of keys have been clicked (i.e. has been pressed for exactly 1 frame).

IsClicked ( Keys key ) : bool

Check if a key has been clicked (i.e. has been pressed for exactly 1 frame).

IsHeld ( KeyCombination keys ) : bool

Check if a combination of keys have been pressed for any number of keys.

IsHeld ( Keys key ) : bool

Check if a key has been pressed for any number of keys.

IsHeldFor ( KeyCombination keys, int frames ) : bool

Check if a combination of keys have been pressed for exactly the given number of frames.

IsHeldFor ( Keys key, int frames ) : bool

Check if a key has been pressed for exactly the given number of frames.

IsHeldForAtleast ( KeyCombination keys, int frames ) : bool

Check if a combination of keys have been pressed for at least the given number of frames.

IsHeldForAtleast ( Keys key, int frames ) : bool

Check if a key has been pressed for at least the given number of frames.

IsIdleFor ( int frames ) : bool

Check if the keyboard has been idle for exactly the given number of frames.

IsIdleForAtleast ( int frames ) : bool

Check if the keyboard has been idle for at least the given number of frames.

IsReleased ( KeyCombination keys ) : bool

Check if a combination of keys have been released (i.e. has been unpressed for exactly 1 frame).

IsReleased ( Keys key ) : bool

Check if a key has been released (i.e. has been unpressed for exactly 1 frame).

IsUnheld ( KeyCombination keys ) : bool

Check if a combination of keys have been unpressed for any number of frames.

IsUnheld ( Keys key ) : bool

Check if a key has been unpressed for any number of frames.

IsUnheldFor ( KeyCombination keys, int frames ) : bool

Check if a combination of keys have been unpressed for exactly the given number of frames.

IsUnheldFor ( Keys key, int frames ) : bool

Check if a key has been unpressed for exactly the given number of frames.

IsUnheldForAtleast ( KeyCombination keys, int frames ) : bool

Check if a combination of keys have been unpressed for at least the given number of frames.

IsUnheldForAtleast ( Keys key, int frames ) : bool

Check if a key has been unpressed for at least the given number of frames.

비공개 메소드들

메소드 설명
KeyboardInput ( ) : System.Collections.Generic
Update ( ) : void

메소드 상세

IsClicked() 공개 메소드

Check if a combination of keys have been clicked (i.e. has been pressed for exactly 1 frame).
public IsClicked ( KeyCombination keys ) : bool
keys KeyCombination
리턴 bool

IsClicked() 공개 메소드

Check if a key has been clicked (i.e. has been pressed for exactly 1 frame).
public IsClicked ( Keys key ) : bool
key Keys
리턴 bool

IsHeld() 공개 메소드

Check if a combination of keys have been pressed for any number of keys.
public IsHeld ( KeyCombination keys ) : bool
keys KeyCombination
리턴 bool

IsHeld() 공개 메소드

Check if a key has been pressed for any number of keys.
public IsHeld ( Keys key ) : bool
key Keys
리턴 bool

IsHeldFor() 공개 메소드

Check if a combination of keys have been pressed for exactly the given number of frames.
public IsHeldFor ( KeyCombination keys, int frames ) : bool
keys KeyCombination
frames int
리턴 bool

IsHeldFor() 공개 메소드

Check if a key has been pressed for exactly the given number of frames.
public IsHeldFor ( Keys key, int frames ) : bool
key Keys
frames int
리턴 bool

IsHeldForAtleast() 공개 메소드

Check if a combination of keys have been pressed for at least the given number of frames.
public IsHeldForAtleast ( KeyCombination keys, int frames ) : bool
keys KeyCombination
frames int
리턴 bool

IsHeldForAtleast() 공개 메소드

Check if a key has been pressed for at least the given number of frames.
public IsHeldForAtleast ( Keys key, int frames ) : bool
key Keys
frames int
리턴 bool

IsIdleFor() 공개 메소드

Check if the keyboard has been idle for exactly the given number of frames.
public IsIdleFor ( int frames ) : bool
frames int
리턴 bool

IsIdleForAtleast() 공개 메소드

Check if the keyboard has been idle for at least the given number of frames.
public IsIdleForAtleast ( int frames ) : bool
frames int
리턴 bool

IsReleased() 공개 메소드

Check if a combination of keys have been released (i.e. has been unpressed for exactly 1 frame).
public IsReleased ( KeyCombination keys ) : bool
keys KeyCombination
리턴 bool

IsReleased() 공개 메소드

Check if a key has been released (i.e. has been unpressed for exactly 1 frame).
public IsReleased ( Keys key ) : bool
key Keys
리턴 bool

IsUnheld() 공개 메소드

Check if a combination of keys have been unpressed for any number of frames.
public IsUnheld ( KeyCombination keys ) : bool
keys KeyCombination
리턴 bool

IsUnheld() 공개 메소드

Check if a key has been unpressed for any number of frames.
public IsUnheld ( Keys key ) : bool
key Keys
리턴 bool

IsUnheldFor() 공개 메소드

Check if a combination of keys have been unpressed for exactly the given number of frames.
public IsUnheldFor ( KeyCombination keys, int frames ) : bool
keys KeyCombination
frames int
리턴 bool

IsUnheldFor() 공개 메소드

Check if a key has been unpressed for exactly the given number of frames.
public IsUnheldFor ( Keys key, int frames ) : bool
key Keys
frames int
리턴 bool

IsUnheldForAtleast() 공개 메소드

Check if a combination of keys have been unpressed for at least the given number of frames.
public IsUnheldForAtleast ( KeyCombination keys, int frames ) : bool
keys KeyCombination
frames int
리턴 bool

IsUnheldForAtleast() 공개 메소드

Check if a key has been unpressed for at least the given number of frames.
public IsUnheldForAtleast ( Keys key, int frames ) : bool
key Keys
frames int
리턴 bool