C# 클래스 SGDE.Input.Mouse

A mouse input device.
상속: InputComponent
파일 보기 프로젝트 열기: sgdc/sgdc-old

공개 메소드들

메소드 설명
GetCurrentState ( ) : Microsoft.Xna.Framework.Input.MouseState

Get the current Mouse input state.

GetPastState ( ) : Microsoft.Xna.Framework.Input.MouseState

Get the past Mouse input state.

IsButtonClicked ( MouseButton but ) : bool

Determine if the specified button is clicked. This means that the button is down right now but wasn't always pressed down.

IsButtonPressed ( MouseButton but ) : bool

Determine if the specified button is pressed.

비공개 메소드들

메소드 설명
GetPosition ( bool cur ) : Vector2
GetScroll ( bool cur ) : int
IsDown ( Microsoft.Xna.Framework.Input.MouseState state, MouseButton but ) : bool
Mouse ( InputManager manager ) : System
SetPosition ( Vector2 value ) : void

메소드 상세

GetCurrentState() 공개 메소드

Get the current Mouse input state.
public GetCurrentState ( ) : Microsoft.Xna.Framework.Input.MouseState
리턴 Microsoft.Xna.Framework.Input.MouseState

GetPastState() 공개 메소드

Get the past Mouse input state.
public GetPastState ( ) : Microsoft.Xna.Framework.Input.MouseState
리턴 Microsoft.Xna.Framework.Input.MouseState

IsButtonClicked() 공개 메소드

Determine if the specified button is clicked. This means that the button is down right now but wasn't always pressed down.
public IsButtonClicked ( MouseButton but ) : bool
but MouseButton The button to check if pressed.
리턴 bool

IsButtonPressed() 공개 메소드

Determine if the specified button is pressed.
public IsButtonPressed ( MouseButton but ) : bool
but MouseButton The button to check if pressed.
리턴 bool