|
| | MyControl (MyStringId controlId, MyStringId name, MyGuiControlTypeEnum controlType, MyMouseButtonsEnum?defaultControlMouse, MyKeys?defaultControlKey, MyStringId?helpText=null, MyKeys?defaultControlKey2=null, MyStringId?description=null) |
| |
| | MyControl (MyControl other) |
| |
| void | SetControl (MyGuiInputDeviceEnum device, MyKeys key) |
| |
| void | SetControl (MyMouseButtonsEnum mouseButton) |
| |
| void | SetNoControl () |
| |
| MyKeys | GetKeyboardControl () |
| |
| MyKeys | GetSecondKeyboardControl () |
| |
| MyMouseButtonsEnum | GetMouseControl () |
| |
| bool | IsPressed () |
| |
| bool | IsNewPressed () |
| |
| bool | IsNewReleased () |
| |
| bool | IsJoystickPressed () |
| |
| bool | IsNewJoystickPressed () |
| |
| bool | IsNewJoystickReleased () |
| |
| float | GetAnalogState () |
| | Return the analog state between 0 (not pressed at all) and 1 (fully pressed). If a digital button is mapped to an analog control, it can return only 0 or 1. More...
|
| |
| MyStringId | GetControlName () |
| |
| MyStringId | GetControlDescription () |
| |
| MyGuiControlTypeEnum | GetControlTypeEnum () |
| |
| MyStringId | GetGameControlEnum () |
| |
| bool | IsControlAssigned () |
| |
| bool | IsControlAssigned (MyGuiInputDeviceEnum deviceType) |
| |
| void | CopyFrom (MyControl other) |
| |
| override string | ToString () |
| | Causes allocation. Creates single string with list of assigned controls. More...
|
| |
| StringBuilder | ToStringBuilder (string unassignedText) |
| | Causes allocation. Creates single StringBuilder with list of assigned controls. Caller takes ownership of returned StringBuilder (it is not stored internally). More...
|
| |
| string | GetControlButtonName (MyGuiInputDeviceEnum deviceType) |
| |
| void | AppendBoundKeyJustOne (ref StringBuilder output) |
| |
| void | AppendBoundButtonNames (ref StringBuilder output, MyGuiInputDeviceEnum device, string separator=null) |
| |
| void | AppendBoundButtonNames (ref StringBuilder output, string separator=", ", string unassignedText=null, bool includeSecondary=true) |
| |
Definition at line 9 of file MyControl.cs.
| VRage.Input.MyControl.MyControl |
( |
MyControl |
other | ) |
|
|
inline |
| void VRage.Input.MyControl.AppendBoundButtonNames |
( |
ref StringBuilder |
output, |
|
|
MyGuiInputDeviceEnum |
device, |
|
|
string |
separator = null |
|
) |
| |
|
inline |
| void VRage.Input.MyControl.AppendBoundButtonNames |
( |
ref StringBuilder |
output, |
|
|
string |
separator = ", ", |
|
|
string |
unassignedText = null, |
|
|
bool |
includeSecondary = true |
|
) |
| |
|
inline |
| void VRage.Input.MyControl.AppendBoundKeyJustOne |
( |
ref StringBuilder |
output | ) |
|
|
inline |
| static void VRage.Input.MyControl.AppendName |
( |
ref StringBuilder |
output, |
|
|
MyKeys |
key |
|
) |
| |
|
inlinestatic |
| static void VRage.Input.MyControl.AppendName |
( |
ref StringBuilder |
output, |
|
|
MyKeys |
key1, |
|
|
MyKeys |
key2, |
|
|
string |
separator |
|
) |
| |
|
inlinestatic |
| static void VRage.Input.MyControl.AppendName |
( |
ref StringBuilder |
output, |
|
|
MyMouseButtonsEnum |
mouseButton |
|
) |
| |
|
inlinestatic |
| static void VRage.Input.MyControl.AppendName |
( |
ref StringBuilder |
output, |
|
|
MyJoystickButtonsEnum |
joystickButton |
|
) |
| |
|
inlinestatic |
| static void VRage.Input.MyControl.AppendName |
( |
ref StringBuilder |
output, |
|
|
MyJoystickAxesEnum |
joystickAxis |
|
) |
| |
|
inlinestatic |
| static void VRage.Input.MyControl.AppendUnknownTextIfNeeded |
( |
ref StringBuilder |
output, |
|
|
string |
unassignedText |
|
) |
| |
|
inlinestatic |
| void VRage.Input.MyControl.CopyFrom |
( |
MyControl |
other | ) |
|
|
inline |
| float VRage.Input.MyControl.GetAnalogState |
( |
| ) |
|
|
inline |
Return the analog state between 0 (not pressed at all) and 1 (fully pressed). If a digital button is mapped to an analog control, it can return only 0 or 1.
Implements VRage.ModAPI.IMyControl.
Definition at line 248 of file MyControl.cs.
| MyStringId VRage.Input.MyControl.GetControlDescription |
( |
| ) |
|
|
inline |
| MyStringId VRage.Input.MyControl.GetControlName |
( |
| ) |
|
|
inline |
| MyStringId VRage.Input.MyControl.GetGameControlEnum |
( |
| ) |
|
|
inline |
| MyKeys VRage.Input.MyControl.GetKeyboardControl |
( |
| ) |
|
|
inline |
| MyKeys VRage.Input.MyControl.GetSecondKeyboardControl |
( |
| ) |
|
|
inline |
| bool VRage.Input.MyControl.IsControlAssigned |
( |
| ) |
|
|
inline |
| bool VRage.Input.MyControl.IsJoystickPressed |
( |
| ) |
|
|
inline |
| bool VRage.Input.MyControl.IsNewJoystickPressed |
( |
| ) |
|
|
inline |
| bool VRage.Input.MyControl.IsNewJoystickReleased |
( |
| ) |
|
|
inline |
| bool VRage.Input.MyControl.IsNewPressed |
( |
| ) |
|
|
inline |
| bool VRage.Input.MyControl.IsNewReleased |
( |
| ) |
|
|
inline |
| bool VRage.Input.MyControl.IsPressed |
( |
| ) |
|
|
inline |
| void VRage.Input.MyControl.SetNoControl |
( |
| ) |
|
|
inline |
| override string VRage.Input.MyControl.ToString |
( |
| ) |
|
|
inline |
Causes allocation. Creates single string with list of assigned controls.
Definition at line 348 of file MyControl.cs.
| StringBuilder VRage.Input.MyControl.ToStringBuilder |
( |
string |
unassignedText | ) |
|
|
inline |
Causes allocation. Creates single StringBuilder with list of assigned controls. Caller takes ownership of returned StringBuilder (it is not stored internally).
Definition at line 377 of file MyControl.cs.
| string VRage.Input.MyControl.ButtonNames |
|
get |
| string VRage.Input.MyControl.ButtonNamesIgnoreSecondary |
|
get |
The documentation for this class was generated from the following file: