Property | Type | Description | |
---|---|---|---|
Game | Game |
Method | Description | |
---|---|---|
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
|
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Disposes stuff
|
Method | Description | |
---|---|---|
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
|
public GetGamepad ( int playerIndex ) : |
||
playerIndex | int | Player index from 0 to 3 inclusivly |
return |
public IsKeyDown ( Keys key, bool ignoreInputMode = true ) : bool | ||
key | Keys | |
ignoreInputMode | bool | |
return | bool |
public KeyboardHandle ( object sender, SharpDX.RawInput.KeyboardInputEventArgs e ) : void | ||
sender | object | |
e | SharpDX.RawInput.KeyboardInputEventArgs | |
return | void |
public MouseHandler ( object sender, SharpDX.RawInput.MouseInputEventArgs e ) : void | ||
sender | object | |
e | SharpDX.RawInput.MouseInputEventArgs | |
return | void |
public NotifyTouchDoubleTap ( System.Vector2 tapPosition ) : void | ||
tapPosition | System.Vector2 | |
return | void |
public NotifyTouchManipulation ( System.Vector2 center, System.Vector2 delta, float scale ) : void | ||
center | System.Vector2 | |
delta | System.Vector2 | |
scale | float | |
return | void |
public NotifyTouchSecondaryTap ( System.Vector2 tapPosition ) : void | ||
tapPosition | System.Vector2 | |
return | void |
public NotifyTouchTap ( System.Vector2 tapPosition ) : void | ||
tapPosition | System.Vector2 | |
return | void |
public SetCursorVisibility ( bool visible ) : void | ||
visible | bool | |
return | void |