C# Class FSO.Common.Rendering.Framework.IO.InputManager

Manages input for the game.
Show file Open project: RHY3756547/FreeSO Class Usage Examples

Public Methods

Method Description
ApplyKeyboardInput ( StringBuilder m_SBuilder, UpdateState state, int cursorIndex, int cursorEndIndex, bool allowInput ) : KeyboardInputResult

Utility to apply the result of pressing keys against a buffer

GetFocus ( ) : IFocusableUI
GetSelectionRange ( int &start, int &end ) : void
HandleMouseEvents ( UpdateState state ) : void
SetFocus ( IFocusableUI ui ) : void
TranslateAlphabetic ( char baseChar, bool shift, bool capsLock ) : char
TranslateChar ( Keys key, bool shift, bool capsLock, bool numLock ) : char

Private Methods

Method Description
DeleteSelectedText ( StringBuilder m_SBuilder, int &cursorIndex, int &cursorEndIndex, bool &didChange, KeyboardInputResult result ) : void
MapVirtualKey ( uint uCode, uint uMapType ) : int

Method Details

ApplyKeyboardInput() public method

Utility to apply the result of pressing keys against a buffer
public ApplyKeyboardInput ( StringBuilder m_SBuilder, UpdateState state, int cursorIndex, int cursorEndIndex, bool allowInput ) : KeyboardInputResult
m_SBuilder StringBuilder
state FSO.Common.Rendering.Framework.Model.UpdateState
cursorIndex int
cursorEndIndex int
allowInput bool
return KeyboardInputResult

GetFocus() public method

public GetFocus ( ) : IFocusableUI
return IFocusableUI

GetSelectionRange() public method

public GetSelectionRange ( int &start, int &end ) : void
start int
end int
return void

HandleMouseEvents() public method

SetFocus() public method

public SetFocus ( IFocusableUI ui ) : void
ui IFocusableUI
return void

TranslateAlphabetic() public static method

public static TranslateAlphabetic ( char baseChar, bool shift, bool capsLock ) : char
baseChar char
shift bool
capsLock bool
return char

TranslateChar() public static method

public static TranslateChar ( Keys key, bool shift, bool capsLock, bool numLock ) : char
key Keys
shift bool
capsLock bool
numLock bool
return char