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

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

공개 프로퍼티들

프로퍼티 타입 설명
MouseButtons MouseButton[]
PreviousPositions List

공개 메소드들

메소드 설명
IsClicked ( MouseButton button ) : bool

Check if a button is clicked (i.e. pressed for exactly 1 frame).

IsHeld ( MouseButton button ) : bool

Check if a button is being held down (coincides with IsClicked).

IsHeldFor ( MouseButton button, int frames ) : bool

Check if a button has been held down for exactly the given number of frames.

IsHeldForAtleast ( MouseButton button, int frames ) : bool

Check if a button has been held down for at least the given number of frames.

IsMouseStill ( ) : bool

Check if the mouse is still.

IsMouseStillFor ( int frames ) : bool

Check if the mouse has been still for exactly the given number of frames.

IsMouseStillForAtleast ( int frames ) : bool

Check if the mouse has been still for at least the given number of frames.

IsReleased ( MouseButton button ) : bool

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

IsUnheld ( MouseButton button ) : bool

Check if a button is not being held down.

IsUnheldFor ( MouseButton button, int frames ) : bool

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

IsUnheldForAtleast ( MouseButton button, int frames ) : bool

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

MouseInput ( ) : System.Collections.Generic

비공개 메소드들

메소드 설명
Update ( ) : void

Update the internal state of the mouse.

UpdateButton ( ButtonState state, MouseButton button ) : void

메소드 상세

IsClicked() 공개 메소드

Check if a button is clicked (i.e. pressed for exactly 1 frame).
public IsClicked ( MouseButton button ) : bool
button MouseButton
리턴 bool

IsHeld() 공개 메소드

Check if a button is being held down (coincides with IsClicked).
public IsHeld ( MouseButton button ) : bool
button MouseButton
리턴 bool

IsHeldFor() 공개 메소드

Check if a button has been held down for exactly the given number of frames.
public IsHeldFor ( MouseButton button, int frames ) : bool
button MouseButton
frames int
리턴 bool

IsHeldForAtleast() 공개 메소드

Check if a button has been held down for at least the given number of frames.
public IsHeldForAtleast ( MouseButton button, int frames ) : bool
button MouseButton
frames int
리턴 bool

IsMouseStill() 공개 메소드

Check if the mouse is still.
public IsMouseStill ( ) : bool
리턴 bool

IsMouseStillFor() 공개 메소드

Check if the mouse has been still for exactly the given number of frames.
public IsMouseStillFor ( int frames ) : bool
frames int
리턴 bool

IsMouseStillForAtleast() 공개 메소드

Check if the mouse has been still for at least the given number of frames.
public IsMouseStillForAtleast ( int frames ) : bool
frames int
리턴 bool

IsReleased() 공개 메소드

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

IsUnheld() 공개 메소드

Check if a button is not being held down.
public IsUnheld ( MouseButton button ) : bool
button MouseButton
리턴 bool

IsUnheldFor() 공개 메소드

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

IsUnheldForAtleast() 공개 메소드

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

MouseInput() 공개 메소드

public MouseInput ( ) : System.Collections.Generic
리턴 System.Collections.Generic

프로퍼티 상세

MouseButtons 공개적으로 정적으로 프로퍼티

public static MouseButton[] MouseButtons
리턴 MouseButton[]

PreviousPositions 공개적으로 프로퍼티

A list of the previous mouse positions (stored for 60 frames).
public List PreviousPositions
리턴 List