C# Class GTRPlugins.Utils.Input

Afficher le fichier Open project: dougbenham/TerrariaPatcher

Méthodes publiques

Méthode Description
IsKeyDown ( Keys key, bool ignoreIfPlayerDoesNotHaveControl = true ) : bool
IsKeyUp ( Keys key, bool ignoreIfPlayerDoesNotHaveControl = true ) : bool
IsMouseButtonDown ( MouseButton button ) : bool
IsMouseButtonUp ( MouseButton button ) : bool
KeyPressed ( Keys key, bool ignoreIfPlayerDoesNotHaveControl = true ) : bool
KeyReleased ( Keys key, bool ignoreIfPlayerDoesNotHaveControl = true ) : bool
MouseButtonPressed ( MouseButton button ) : bool
MouseButtonReleased ( MouseButton button ) : bool

Private Methods

Méthode Description
GetMouseButton ( Microsoft.Xna.Framework.Input.MouseState state, MouseButton button ) : bool
Update ( ) : void

Method Details

IsKeyDown() public static méthode

public static IsKeyDown ( Keys key, bool ignoreIfPlayerDoesNotHaveControl = true ) : bool
key Keys
ignoreIfPlayerDoesNotHaveControl bool
Résultat bool

IsKeyUp() public static méthode

public static IsKeyUp ( Keys key, bool ignoreIfPlayerDoesNotHaveControl = true ) : bool
key Keys
ignoreIfPlayerDoesNotHaveControl bool
Résultat bool

IsMouseButtonDown() public static méthode

public static IsMouseButtonDown ( MouseButton button ) : bool
button MouseButton
Résultat bool

IsMouseButtonUp() public static méthode

public static IsMouseButtonUp ( MouseButton button ) : bool
button MouseButton
Résultat bool

KeyPressed() public static méthode

public static KeyPressed ( Keys key, bool ignoreIfPlayerDoesNotHaveControl = true ) : bool
key Keys
ignoreIfPlayerDoesNotHaveControl bool
Résultat bool

KeyReleased() public static méthode

public static KeyReleased ( Keys key, bool ignoreIfPlayerDoesNotHaveControl = true ) : bool
key Keys
ignoreIfPlayerDoesNotHaveControl bool
Résultat bool

MouseButtonPressed() public static méthode

public static MouseButtonPressed ( MouseButton button ) : bool
button MouseButton
Résultat bool

MouseButtonReleased() public static méthode

public static MouseButtonReleased ( MouseButton button ) : bool
button MouseButton
Résultat bool