C# Class Ypsilon.Core.Input.InputManager

Exibir arquivo Open project: ZaneDubya/YCPU Class Usage Examples

Public Properties

Property Type Description
DoubleClickSeconds float

Private Properties

Property Type Description
AddEvent void
CopyEvents void
DistanceBetweenPoints bool
OnKeyChar void
OnKeyDown void
OnKeyUp void
OnMouseDown void
OnMouseMove void
OnMouseUp void
OnMouseWheel void

Public Methods

Method 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

Method 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 method

public CreateMouseState ( Microsoft.Xna.Framework.Input.MouseState state ) : Microsoft.Xna.Framework.Input.MouseState
state Microsoft.Xna.Framework.Input.MouseState
return Microsoft.Xna.Framework.Input.MouseState

Dispose() public method

public Dispose ( ) : void
return void

GetKeyboardEvents() public method

public GetKeyboardEvents ( ) : List
return List

GetMouseEvents() public method

public GetMouseEvents ( ) : List
return List

HandleKeyboardEvent() public method

public HandleKeyboardEvent ( KeyboardEvent type, WinKeys key, bool shift, bool alt, bool ctrl ) : bool
type KeyboardEvent
key WinKeys
shift bool
alt bool
ctrl bool
return bool

HandleMouseEvent() public method

public HandleMouseEvent ( MouseEvent type, MouseButton mb ) : bool
type MouseEvent
mb MouseButton
return bool

InputManager() public method

public InputManager ( IntPtr handle ) : System
handle System.IntPtr
return System

IsKeyDown() public method

public IsKeyDown ( WinKeys key ) : bool
key WinKeys
return bool

Update() public method

public Update ( float totalSeconds, float frameSeconds ) : void
totalSeconds float
frameSeconds float
return void

Property Details

DoubleClickSeconds public_oe static_oe property

public static float DoubleClickSeconds
return float