C# Class Dwarrowdelf.Client.CameraKeyHandler

Inheritance: IGameUpdatable
Mostra file Open project: tomba/dwarrowdelf

Public Properties

Property Type Description
KeyDown Action

Public Methods

Method Description
CameraKeyHandler ( MyGame game, MapControl3D control ) : System
HandleFpsKeyboard ( ) : void
HandleRtsFspKeyHandled ( System.Windows.Input.KeyEventArgs e ) : void
HandleRtsKeyboard ( ) : void
OnKeyDown ( object sender, System.Windows.Input.KeyEventArgs e ) : void
OnKeyUp ( object sender, System.Windows.Input.KeyEventArgs e ) : void
OnLostKeyboardFocus ( object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
OnTextInput ( object sender, System.Windows.Input.TextCompositionEventArgs e ) : void
OnTextInputFps ( System.Windows.Input.TextCompositionEventArgs e ) : void
OnTextInputRts ( System.Windows.Input.TextCompositionEventArgs e ) : void
Update ( ) : void

Private Methods

Method Description
IsKeyDown ( Key key ) : bool

Method Details

CameraKeyHandler() public method

public CameraKeyHandler ( MyGame game, MapControl3D control ) : System
game MyGame
control MapControl3D
return System

HandleFpsKeyboard() public method

public HandleFpsKeyboard ( ) : void
return void

HandleRtsFspKeyHandled() public method

public HandleRtsFspKeyHandled ( System.Windows.Input.KeyEventArgs e ) : void
e System.Windows.Input.KeyEventArgs
return void

HandleRtsKeyboard() public method

public HandleRtsKeyboard ( ) : void
return void

OnKeyDown() public method

public OnKeyDown ( object sender, System.Windows.Input.KeyEventArgs e ) : void
sender object
e System.Windows.Input.KeyEventArgs
return void

OnKeyUp() public method

public OnKeyUp ( object sender, System.Windows.Input.KeyEventArgs e ) : void
sender object
e System.Windows.Input.KeyEventArgs
return void

OnLostKeyboardFocus() public method

public OnLostKeyboardFocus ( object sender, System.Windows.Input.KeyboardFocusChangedEventArgs e ) : void
sender object
e System.Windows.Input.KeyboardFocusChangedEventArgs
return void

OnTextInput() public method

public OnTextInput ( object sender, System.Windows.Input.TextCompositionEventArgs e ) : void
sender object
e System.Windows.Input.TextCompositionEventArgs
return void

OnTextInputFps() public method

public OnTextInputFps ( System.Windows.Input.TextCompositionEventArgs e ) : void
e System.Windows.Input.TextCompositionEventArgs
return void

OnTextInputRts() public method

public OnTextInputRts ( System.Windows.Input.TextCompositionEventArgs e ) : void
e System.Windows.Input.TextCompositionEventArgs
return void

Update() public method

public Update ( ) : void
return void

Property Details

KeyDown public_oe property

public Action KeyDown
return Action