C# Class Ypsilon.Providers.InputProvider

This is a front end to Ypsilon.Core.Input.InputManager that provides messages to
Inheritance: IInputProvider
Datei anzeigen Open project: ZaneDubya/YCPU Class Usage Examples

Public Methods

Method Description
HandleKeyboardEvent ( KeyboardEvent type, WinKeys key, bool shift, bool alt, bool ctrl ) : bool
InputProvider ( InputManager input ) : System
TryGetKeyboardEvent ( bool translateASCII, ushort &eventCode ) : bool
Update ( float totalSeconds, float frameSeconds ) : void

Method Details

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

InputProvider() public method

public InputProvider ( InputManager input ) : System
input Ypsilon.Core.Input.InputManager
return System

TryGetKeyboardEvent() public method

public TryGetKeyboardEvent ( bool translateASCII, ushort &eventCode ) : bool
translateASCII bool
eventCode ushort
return bool

Update() public method

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