C# 클래스 Input.MouseManager

파일 보기 프로젝트 열기: Jewelots/Spelunky-Tiles

공개 메소드들

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

Check if button currently down

ButtonPressed ( MouseButton button ) : bool

Check if button was pressed since last update

ButtonReleased ( MouseButton button ) : bool

Check if button was released since last update

GetPosition ( int &X, int &Y ) : void

Get the position of the mouse cursor (relative to window)

Update ( ) : void

Update the mouse manager's inputs

메소드 상세

ButtonDown() 공개 정적인 메소드

Check if button currently down
public static ButtonDown ( MouseButton button ) : bool
button MouseButton Button to check
리턴 bool

ButtonPressed() 공개 정적인 메소드

Check if button was pressed since last update
public static ButtonPressed ( MouseButton button ) : bool
button MouseButton Button to check
리턴 bool

ButtonReleased() 공개 정적인 메소드

Check if button was released since last update
public static ButtonReleased ( MouseButton button ) : bool
button MouseButton Button to check
리턴 bool

GetPosition() 공개 정적인 메소드

Get the position of the mouse cursor (relative to window)
public static GetPosition ( int &X, int &Y ) : void
X int Output X position of the cursor
Y int Output Y position of the cursor
리턴 void

Update() 공개 정적인 메소드

Update the mouse manager's inputs
public static Update ( ) : void
리턴 void