C# Class Ypsilon.Core.Input.InputManager

Afficher le fichier Open project: ZaneDubya/YCPU Class Usage Examples

Méthodes publiques

Свойство Type Description
DoubleClickSeconds float

Private Properties

Свойство Type Description
AddEvent void
CopyEvents void
DistanceBetweenPoints bool
OnKeyChar void
OnKeyDown void
OnKeyUp void
OnMouseDown void
OnMouseMove void
OnMouseUp void
OnMouseWheel void

Méthodes publiques

Méthode Description
CreateMouseState ( Microsoft.Xna.Framework.Input.MouseState state ) : Microsoft.Xna.Framework.Input.MouseState
Dispose ( ) : void
GetKeyboardEvents ( ) : List
GetMouseEvents ( ) : List
HandleKeyboardEvent ( KeyboardEvent type, WinKeys key, bool shift, bool alt, bool ctrl ) : bool
HandleMouseEvent ( MouseEvent type, MouseButton mb ) : bool
InputManager ( IntPtr handle ) : System
IsKeyDown ( WinKeys key ) : bool
Update ( float totalSeconds, float frameSeconds ) : void

Private Methods

Méthode Description
AddEvent ( InputEvent e ) : void
CopyEvents ( ) : void
DistanceBetweenPoints ( Point initial, Point final, int distance ) : bool
OnKeyChar ( InputEventKeyboard e ) : void
OnKeyDown ( InputEventKeyboard e ) : void
OnKeyUp ( InputEventKeyboard e ) : void
OnMouseDown ( InputEventMouse e ) : void
OnMouseMove ( InputEventMouse e ) : void
OnMouseUp ( InputEventMouse e ) : void
OnMouseWheel ( InputEventMouse e ) : void

Method Details

CreateMouseState() public méthode

public CreateMouseState ( Microsoft.Xna.Framework.Input.MouseState state ) : Microsoft.Xna.Framework.Input.MouseState
state Microsoft.Xna.Framework.Input.MouseState
Résultat Microsoft.Xna.Framework.Input.MouseState

Dispose() public méthode

public Dispose ( ) : void
Résultat void

GetKeyboardEvents() public méthode

public GetKeyboardEvents ( ) : List
Résultat List

GetMouseEvents() public méthode

public GetMouseEvents ( ) : List
Résultat List

HandleKeyboardEvent() public méthode

public HandleKeyboardEvent ( KeyboardEvent type, WinKeys key, bool shift, bool alt, bool ctrl ) : bool
type KeyboardEvent
key WinKeys
shift bool
alt bool
ctrl bool
Résultat bool

HandleMouseEvent() public méthode

public HandleMouseEvent ( MouseEvent type, MouseButton mb ) : bool
type MouseEvent
mb MouseButton
Résultat bool

InputManager() public méthode

public InputManager ( IntPtr handle ) : System
handle System.IntPtr
Résultat System

IsKeyDown() public méthode

public IsKeyDown ( WinKeys key ) : bool
key WinKeys
Résultat bool

Update() public méthode

public Update ( float totalSeconds, float frameSeconds ) : void
totalSeconds float
frameSeconds float
Résultat void

Property Details

DoubleClickSeconds public_oe static_oe property

public static float DoubleClickSeconds
Résultat float