Свойство | Тип | Описание | |
---|---|---|---|
Game | Game |
Метод | Описание | |
---|---|---|
AddPressedKey ( Keys key ) : void |
Adds key to hash list and fires KeyDown event
|
|
GetGamepad ( int playerIndex ) : |
Gets player's gamepad
|
|
IsKeyDown ( Keys key, bool ignoreInputMode = true ) : bool |
Checks whether key is down
|
|
IsKeyUp ( Keys key ) : bool |
Checks whether key is down
|
|
KeyboardHandle ( object sender, SharpDX.RawInput.KeyboardInputEventArgs e ) : void |
Keyboard handler In general: http://molecularmusings.wordpress.com/2011/09/05/properly-handling-keyboard-input/ L/R shift: http://stackoverflow.com/questions/5920301/distinguish-between-left-and-right-shift-keys-using-rawinput
|
|
MouseHandler ( object sender, SharpDX.RawInput.MouseInputEventArgs e ) : void |
Mouse handler
|
|
NotifyTouchDoubleTap ( System.Vector2 tapPosition ) : void | ||
NotifyTouchManipulation ( System.Vector2 center, System.Vector2 delta, float scale ) : void | ||
NotifyTouchSecondaryTap ( System.Vector2 tapPosition ) : void | ||
NotifyTouchTap ( System.Vector2 tapPosition ) : void | ||
RemovePressedKey ( Keys key ) : void |
Removes key from hash list and fires KeyUp event
|
|
SetCursorImage ( string path ) : void |
Loads cursor image from file
|
|
SetCursorVisibility ( bool visible ) : void |
Sets cursor visibility
|
Метод | Описание | |
---|---|---|
Dispose ( bool disposing ) : void |
Disposes stuff
|
Метод | Описание | |
---|---|---|
EndUpdateInput ( ) : void |
Should be called after everything is updated
|
|
Initialize ( ) : void | ||
InputDevice ( Game game ) : System |
Constrcutor
|
|
NotifyKeyDown ( Keys key, bool alt, bool shift, bool control ) : void | ||
NotifyKeyPress ( char keyChar ) : void | ||
NotifyKeyUp ( Keys key, bool alt, bool shift, bool control ) : void | ||
RemoveAllPressedKeys ( ) : void |
|
|
UpdateInput ( ) : void |
Frame
|
protected Dispose ( bool disposing ) : void | ||
disposing | bool | |
Результат | void |
public GetGamepad ( int playerIndex ) : |
||
playerIndex | int | Player index from 0 to 3 inclusivly |
Результат |
public IsKeyDown ( Keys key, bool ignoreInputMode = true ) : bool | ||
key | Keys | |
ignoreInputMode | bool | |
Результат | bool |
public KeyboardHandle ( object sender, SharpDX.RawInput.KeyboardInputEventArgs e ) : void | ||
sender | object | |
e | SharpDX.RawInput.KeyboardInputEventArgs | |
Результат | void |
public MouseHandler ( object sender, SharpDX.RawInput.MouseInputEventArgs e ) : void | ||
sender | object | |
e | SharpDX.RawInput.MouseInputEventArgs | |
Результат | void |
public NotifyTouchDoubleTap ( System.Vector2 tapPosition ) : void | ||
tapPosition | System.Vector2 | |
Результат | void |
public NotifyTouchManipulation ( System.Vector2 center, System.Vector2 delta, float scale ) : void | ||
center | System.Vector2 | |
delta | System.Vector2 | |
scale | float | |
Результат | void |
public NotifyTouchSecondaryTap ( System.Vector2 tapPosition ) : void | ||
tapPosition | System.Vector2 | |
Результат | void |
public NotifyTouchTap ( System.Vector2 tapPosition ) : void | ||
tapPosition | System.Vector2 | |
Результат | void |
public RemovePressedKey ( Keys key ) : void | ||
key | Keys | |
Результат | void |
public SetCursorImage ( string path ) : void | ||
path | string | |
Результат | void |
public SetCursorVisibility ( bool visible ) : void | ||
visible | bool | |
Результат | void |