Space Engineers
Public Member Functions | Properties | Events | List of all members
VRage.Input.IMyInput Interface Reference
Inheritance diagram for VRage.Input.IMyInput:
VRage.Input.MyDirectXInput VRage.Input.MyNullInput

Public Member Functions

void LoadData (SerializableDictionary< string, object > controlsGeneral, SerializableDictionary< string, object > controlsButtons)
 
void LoadContent (IntPtr windowHandle)
 
void UnloadData ()
 
List< string > EnumerateJoystickNames ()
 
bool Update (bool gameFocused)
 
void SetControlBlock (MyStringId controlEnum, bool block=false)
 
bool IsControlBlocked (MyStringId controlEnum)
 
bool IsAnyKeyPress ()
 
bool IsAnyMousePressed ()
 
bool IsAnyNewMousePressed ()
 
bool IsAnyShiftKeyPressed ()
 
bool IsAnyAltKeyPressed ()
 
bool IsAnyCtrlKeyPressed ()
 
void GetPressedKeys (List< MyKeys > keys)
 
bool IsKeyPress (MyKeys key)
 
bool IsNewKeyPressed (MyKeys key)
 
bool IsNewKeyReleased (MyKeys key)
 
bool IsMousePressed (MyMouseButtonsEnum button)
 
bool IsMouseReleased (MyMouseButtonsEnum button)
 
bool IsNewMousePressed (MyMouseButtonsEnum button)
 
bool IsNewLeftMousePressed ()
 
bool IsNewLeftMouseReleased ()
 
bool IsLeftMousePressed ()
 
bool IsLeftMouseReleased ()
 
bool IsRightMousePressed ()
 
bool IsNewRightMousePressed ()
 
bool IsNewRightMouseReleased ()
 
bool WasRightMousePressed ()
 
bool WasRightMouseReleased ()
 
bool IsMiddleMousePressed ()
 
bool IsNewMiddleMousePressed ()
 
bool IsNewMiddleMouseReleased ()
 
bool WasMiddleMousePressed ()
 
bool WasMiddleMouseReleased ()
 
bool IsXButton1MousePressed ()
 
bool IsNewXButton1MousePressed ()
 
bool IsNewXButton1MouseReleased ()
 
bool WasXButton1MousePressed ()
 
bool WasXButton1MouseReleased ()
 
bool IsXButton2MousePressed ()
 
bool IsNewXButton2MousePressed ()
 
bool IsNewXButton2MouseReleased ()
 
bool WasXButton2MousePressed ()
 
bool WasXButton2MouseReleased ()
 
bool IsJoystickButtonPressed (MyJoystickButtonsEnum button)
 
bool IsJoystickButtonNewPressed (MyJoystickButtonsEnum button)
 
bool IsNewJoystickButtonReleased (MyJoystickButtonsEnum button)
 
float GetJoystickAxisStateForGameplay (MyJoystickAxesEnum axis)
 
bool IsJoystickAxisPressed (MyJoystickAxesEnum axis)
 
bool IsJoystickAxisNewPressed (MyJoystickAxesEnum axis)
 
bool IsNewJoystickAxisReleased (MyJoystickAxesEnum axis)
 
float GetJoystickSensitivity ()
 
void SetJoystickSensitivity (float newSensitivity)
 
float GetJoystickExponent ()
 
void SetJoystickExponent (float newExponent)
 
float GetJoystickDeadzone ()
 
void SetJoystickDeadzone (float newDeadzone)
 
bool IsAnyMouseOrJoystickPressed ()
 
bool IsAnyNewMouseOrJoystickPressed ()
 
bool IsNewPrimaryButtonPressed ()
 
bool IsNewSecondaryButtonPressed ()
 
bool IsNewPrimaryButtonReleased ()
 
bool IsNewSecondaryButtonReleased ()
 
bool IsPrimaryButtonReleased ()
 
bool IsSecondaryButtonReleased ()
 
bool IsPrimaryButtonPressed ()
 
bool IsSecondaryButtonPressed ()
 
bool IsNewButtonPressed (MySharedButtonsEnum button)
 
bool IsButtonPressed (MySharedButtonsEnum button)
 
bool IsNewButtonReleased (MySharedButtonsEnum button)
 
bool IsButtonReleased (MySharedButtonsEnum button)
 
int MouseScrollWheelValue ()
 
int PreviousMouseScrollWheelValue ()
 
int DeltaMouseScrollWheelValue ()
 
int GetMouseXForGamePlay ()
 
int GetMouseYForGamePlay ()
 
int GetMouseX ()
 
int GetMouseY ()
 
bool GetMouseXInversion ()
 
bool GetMouseYInversion ()
 
void SetMouseXInversion (bool inverted)
 
void SetMouseYInversion (bool inverted)
 
float GetMouseSensitivity ()
 
void SetMouseSensitivity (float sensitivity)
 
Vector2 GetMousePosition ()
 
Vector2 GetMouseAreaSize ()
 
void SetMousePosition (int x, int y)
 
bool IsNewGameControlPressed (MyStringId controlEnum)
 
bool IsGameControlPressed (MyStringId controlEnum)
 
bool IsNewGameControlReleased (MyStringId controlEnum)
 
float GetGameControlAnalogState (MyStringId controlEnum)
 
bool IsGameControlReleased (MyStringId controlEnum)
 
bool IsKeyValid (MyKeys key)
 
bool IsKeyDigit (MyKeys key)
 
bool IsMouseButtonValid (MyMouseButtonsEnum button)
 
bool IsJoystickButtonValid (MyJoystickButtonsEnum button)
 
bool IsJoystickAxisValid (MyJoystickAxesEnum axis)
 
bool IsJoystickConnected ()
 
MyControl GetControl (MyKeys key)
 
MyControl GetControl (MyMouseButtonsEnum button)
 
void GetListOfPressedKeys (List< MyKeys > keys)
 
void GetListOfPressedMouseButtons (List< MyMouseButtonsEnum > result)
 
DictionaryValuesReader< MyStringId, MyControlGetGameControlsList ()
 
void TakeSnapshot ()
 
void RevertChanges ()
 
MyControl GetGameControl (MyStringId controlEnum)
 
void RevertToDefaultControls ()
 
void AddDefaultControl (MyStringId stringId, MyControl control)
 
void SaveControls (SerializableDictionary< string, object > controlsGeneral, SerializableDictionary< string, object > controlsButtons)
 
string GetKeyName (MyKeys key)
 
string GetName (MyMouseButtonsEnum mouseButton)
 
string GetName (MyJoystickButtonsEnum joystickButton)
 
string GetName (MyJoystickAxesEnum joystickAxis)
 
string GetUnassignedName ()
 
bool IsGamepadKeyRightPressed ()
 
bool IsGamepadKeyLeftPressed ()
 
bool IsNewGamepadKeyDownPressed ()
 
bool IsNewGamepadKeyUpPressed ()
 
void GetActualJoystickState (StringBuilder text)
 
bool IsNewGameControlJoystickOnlyPressed (MyStringId controlId)
 

Properties

bool IsCapsLock [get]
 
string JoystickInstanceName [get, set]
 
IntPtr WindowHandle [get]
 
ListReader< char > TextInput [get]
 
bool JoystickAsMouse [get, set]
 
bool IsJoystickLastUsed [get]
 
bool ENABLE_DEVELOPER_KEYS [get]
 

Events

Action< bool > JoystickConnected
 

Detailed Description

Definition at line 12 of file IMyInput.cs.

Member Function Documentation

void VRage.Input.IMyInput.AddDefaultControl ( MyStringId  stringId,
MyControl  control 
)
int VRage.Input.IMyInput.DeltaMouseScrollWheelValue ( )

Implemented in VRage.Input.MyDirectXInput.

List<string> VRage.Input.IMyInput.EnumerateJoystickNames ( )

Implemented in VRage.Input.MyDirectXInput.

void VRage.Input.IMyInput.GetActualJoystickState ( StringBuilder  text)

Implemented in VRage.Input.MyDirectXInput.

MyControl VRage.Input.IMyInput.GetControl ( MyKeys  key)

Implemented in VRage.Input.MyDirectXInput.

MyControl VRage.Input.IMyInput.GetControl ( MyMouseButtonsEnum  button)

Implemented in VRage.Input.MyDirectXInput.

MyControl VRage.Input.IMyInput.GetGameControl ( MyStringId  controlEnum)

Implemented in VRage.Input.MyDirectXInput.

float VRage.Input.IMyInput.GetGameControlAnalogState ( MyStringId  controlEnum)

Implemented in VRage.Input.MyDirectXInput.

DictionaryValuesReader<MyStringId, MyControl> VRage.Input.IMyInput.GetGameControlsList ( )

Implemented in VRage.Input.MyDirectXInput.

float VRage.Input.IMyInput.GetJoystickAxisStateForGameplay ( MyJoystickAxesEnum  axis)

Implemented in VRage.Input.MyDirectXInput.

float VRage.Input.IMyInput.GetJoystickDeadzone ( )

Implemented in VRage.Input.MyDirectXInput.

float VRage.Input.IMyInput.GetJoystickExponent ( )

Implemented in VRage.Input.MyDirectXInput.

float VRage.Input.IMyInput.GetJoystickSensitivity ( )

Implemented in VRage.Input.MyDirectXInput.

string VRage.Input.IMyInput.GetKeyName ( MyKeys  key)

Implemented in VRage.Input.MyDirectXInput.

void VRage.Input.IMyInput.GetListOfPressedKeys ( List< MyKeys keys)

Implemented in VRage.Input.MyDirectXInput.

void VRage.Input.IMyInput.GetListOfPressedMouseButtons ( List< MyMouseButtonsEnum result)

Implemented in VRage.Input.MyDirectXInput.

Vector2 VRage.Input.IMyInput.GetMouseAreaSize ( )

Implemented in VRage.Input.MyDirectXInput.

Vector2 VRage.Input.IMyInput.GetMousePosition ( )

Implemented in VRage.Input.MyDirectXInput.

float VRage.Input.IMyInput.GetMouseSensitivity ( )

Implemented in VRage.Input.MyDirectXInput.

int VRage.Input.IMyInput.GetMouseX ( )

Implemented in VRage.Input.MyDirectXInput.

int VRage.Input.IMyInput.GetMouseXForGamePlay ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.GetMouseXInversion ( )

Implemented in VRage.Input.MyDirectXInput.

int VRage.Input.IMyInput.GetMouseY ( )

Implemented in VRage.Input.MyDirectXInput.

int VRage.Input.IMyInput.GetMouseYForGamePlay ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.GetMouseYInversion ( )

Implemented in VRage.Input.MyDirectXInput.

string VRage.Input.IMyInput.GetName ( MyMouseButtonsEnum  mouseButton)

Implemented in VRage.Input.MyDirectXInput.

string VRage.Input.IMyInput.GetName ( MyJoystickButtonsEnum  joystickButton)

Implemented in VRage.Input.MyDirectXInput.

string VRage.Input.IMyInput.GetName ( MyJoystickAxesEnum  joystickAxis)

Implemented in VRage.Input.MyDirectXInput.

void VRage.Input.IMyInput.GetPressedKeys ( List< MyKeys keys)

Implemented in VRage.Input.MyDirectXInput.

string VRage.Input.IMyInput.GetUnassignedName ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsAnyAltKeyPressed ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsAnyCtrlKeyPressed ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsAnyKeyPress ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsAnyMouseOrJoystickPressed ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsAnyMousePressed ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsAnyNewMouseOrJoystickPressed ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsAnyNewMousePressed ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsAnyShiftKeyPressed ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsButtonPressed ( MySharedButtonsEnum  button)

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsButtonReleased ( MySharedButtonsEnum  button)

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsControlBlocked ( MyStringId  controlEnum)
bool VRage.Input.IMyInput.IsGameControlPressed ( MyStringId  controlEnum)

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsGameControlReleased ( MyStringId  controlEnum)

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsGamepadKeyLeftPressed ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsGamepadKeyRightPressed ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsJoystickAxisNewPressed ( MyJoystickAxesEnum  axis)

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsJoystickAxisPressed ( MyJoystickAxesEnum  axis)

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsJoystickAxisValid ( MyJoystickAxesEnum  axis)

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsJoystickButtonNewPressed ( MyJoystickButtonsEnum  button)

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsJoystickButtonPressed ( MyJoystickButtonsEnum  button)

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsJoystickButtonValid ( MyJoystickButtonsEnum  button)

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsJoystickConnected ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsKeyDigit ( MyKeys  key)

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsKeyPress ( MyKeys  key)

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsKeyValid ( MyKeys  key)

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsLeftMousePressed ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsLeftMouseReleased ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsMiddleMousePressed ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsMouseButtonValid ( MyMouseButtonsEnum  button)

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsMousePressed ( MyMouseButtonsEnum  button)

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsMouseReleased ( MyMouseButtonsEnum  button)

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsNewButtonPressed ( MySharedButtonsEnum  button)

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsNewButtonReleased ( MySharedButtonsEnum  button)

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsNewGameControlJoystickOnlyPressed ( MyStringId  controlId)

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsNewGameControlPressed ( MyStringId  controlEnum)

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsNewGameControlReleased ( MyStringId  controlEnum)

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsNewGamepadKeyDownPressed ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsNewGamepadKeyUpPressed ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsNewJoystickAxisReleased ( MyJoystickAxesEnum  axis)

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsNewJoystickButtonReleased ( MyJoystickButtonsEnum  button)

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsNewKeyPressed ( MyKeys  key)

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsNewKeyReleased ( MyKeys  key)

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsNewLeftMousePressed ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsNewLeftMouseReleased ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsNewMiddleMousePressed ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsNewMiddleMouseReleased ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsNewMousePressed ( MyMouseButtonsEnum  button)

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsNewPrimaryButtonPressed ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsNewPrimaryButtonReleased ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsNewRightMousePressed ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsNewRightMouseReleased ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsNewSecondaryButtonPressed ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsNewSecondaryButtonReleased ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsNewXButton1MousePressed ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsNewXButton1MouseReleased ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsNewXButton2MousePressed ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsNewXButton2MouseReleased ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsPrimaryButtonPressed ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsPrimaryButtonReleased ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsRightMousePressed ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsSecondaryButtonPressed ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsSecondaryButtonReleased ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsXButton1MousePressed ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.IsXButton2MousePressed ( )

Implemented in VRage.Input.MyDirectXInput.

void VRage.Input.IMyInput.LoadContent ( IntPtr  windowHandle)

Implemented in VRage.Input.MyDirectXInput.

void VRage.Input.IMyInput.LoadData ( SerializableDictionary< string, object >  controlsGeneral,
SerializableDictionary< string, object >  controlsButtons 
)

Implemented in VRage.Input.MyDirectXInput.

int VRage.Input.IMyInput.MouseScrollWheelValue ( )

Implemented in VRage.Input.MyDirectXInput.

int VRage.Input.IMyInput.PreviousMouseScrollWheelValue ( )

Implemented in VRage.Input.MyDirectXInput.

void VRage.Input.IMyInput.RevertChanges ( )

Implemented in VRage.Input.MyDirectXInput.

void VRage.Input.IMyInput.RevertToDefaultControls ( )

Implemented in VRage.Input.MyDirectXInput.

void VRage.Input.IMyInput.SaveControls ( SerializableDictionary< string, object >  controlsGeneral,
SerializableDictionary< string, object >  controlsButtons 
)

Implemented in VRage.Input.MyDirectXInput.

void VRage.Input.IMyInput.SetControlBlock ( MyStringId  controlEnum,
bool  block = false 
)
void VRage.Input.IMyInput.SetJoystickDeadzone ( float  newDeadzone)

Implemented in VRage.Input.MyDirectXInput.

void VRage.Input.IMyInput.SetJoystickExponent ( float  newExponent)

Implemented in VRage.Input.MyDirectXInput.

void VRage.Input.IMyInput.SetJoystickSensitivity ( float  newSensitivity)

Implemented in VRage.Input.MyDirectXInput.

void VRage.Input.IMyInput.SetMousePosition ( int  x,
int  y 
)

Implemented in VRage.Input.MyDirectXInput.

void VRage.Input.IMyInput.SetMouseSensitivity ( float  sensitivity)

Implemented in VRage.Input.MyDirectXInput.

void VRage.Input.IMyInput.SetMouseXInversion ( bool  inverted)

Implemented in VRage.Input.MyDirectXInput.

void VRage.Input.IMyInput.SetMouseYInversion ( bool  inverted)

Implemented in VRage.Input.MyDirectXInput.

void VRage.Input.IMyInput.TakeSnapshot ( )

Implemented in VRage.Input.MyDirectXInput.

void VRage.Input.IMyInput.UnloadData ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.Update ( bool  gameFocused)

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.WasMiddleMousePressed ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.WasMiddleMouseReleased ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.WasRightMousePressed ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.WasRightMouseReleased ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.WasXButton1MousePressed ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.WasXButton1MouseReleased ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.WasXButton2MousePressed ( )

Implemented in VRage.Input.MyDirectXInput.

bool VRage.Input.IMyInput.WasXButton2MouseReleased ( )

Implemented in VRage.Input.MyDirectXInput.

Property Documentation

bool VRage.Input.IMyInput.ENABLE_DEVELOPER_KEYS
get

Definition at line 342 of file IMyInput.cs.

bool VRage.Input.IMyInput.IsCapsLock
get

Definition at line 14 of file IMyInput.cs.

bool VRage.Input.IMyInput.IsJoystickLastUsed
get

Definition at line 308 of file IMyInput.cs.

bool VRage.Input.IMyInput.JoystickAsMouse
getset

Definition at line 305 of file IMyInput.cs.

string VRage.Input.IMyInput.JoystickInstanceName
getset

Definition at line 17 of file IMyInput.cs.

ListReader<char> VRage.Input.IMyInput.TextInput
get

Definition at line 34 of file IMyInput.cs.

IntPtr VRage.Input.IMyInput.WindowHandle
get

Definition at line 27 of file IMyInput.cs.

Event Documentation

Action<bool> VRage.Input.IMyInput.JoystickConnected

Definition at line 311 of file IMyInput.cs.


The documentation for this interface was generated from the following file: