![]() |
Paradox Game Engine
v1.0.0 beta06
|
Describes a virtual button (a key from a keyboard, a mouse button, an axis of a joystick...etc.). More...
Classes | |
class | GamePad |
GamePad virtual button. More... | |
class | Keyboard |
Keyboard virtual button. More... | |
class | Mouse |
Mouse virtual button. More... | |
Public Member Functions | |
override string | ToString () |
abstract float | GetValue (InputManagerBase manager) |
Gets the value associated with this virtual button from an input manager. More... | |
Static Public Member Functions | |
static IVirtualButton | operator+ (IVirtualButton left, VirtualButton right) |
Implements the + operator to combine to VirtualButton. More... | |
static implicit | operator VirtualButtonGroup (VirtualButton button) |
Performs an implicit conversion from VirtualButton to VirtualButtonAnd. More... | |
static VirtualButton | Find (string name) |
Finds a virtual button by the specified name. More... | |
static VirtualButton | Find (int id) |
Finds a virtual button by the specified id. More... | |
Public Attributes | |
readonly int | Id |
Unique Id for a particular button Type. More... | |
readonly string | Name |
Name of this button. More... | |
readonly VirtualButtonType | Type |
Type of this button. More... | |
readonly bool | IsPositiveAndNegative |
A boolean indicating whether this button supports positive and negative value. More... | |
Properties | |
static IReadOnlyCollection < VirtualButton > | Registered [get] |
Gets all registered VirtualButton. More... | |
Describes a virtual button (a key from a keyboard, a mouse button, an axis of a joystick...etc.).
Definition at line 15 of file VirtualButton.cs.
|
static |
Finds a virtual button by the specified name.
name | The name. |
Definition at line 107 of file VirtualButton.cs.
|
static |
Finds a virtual button by the specified id.
id | The id. |
Definition at line 120 of file VirtualButton.cs.
|
pure virtual |
Gets the value associated with this virtual button from an input manager.
manager | The manager. |
Implements SiliconStudio.Paradox.Input.IVirtualButton.
Implemented in SiliconStudio.Paradox.Input.VirtualButton.Keyboard, SiliconStudio.Paradox.Input.VirtualButton.GamePad, and SiliconStudio.Paradox.Input.VirtualButton.Mouse.
|
static |
Performs an implicit conversion from VirtualButton to VirtualButtonAnd.
button | The virtual button. |
Definition at line 84 of file VirtualButton.cs.
|
static |
Implements the + operator to combine to VirtualButton.
left | The left virtual button. |
right | The right virtual button. |
Definition at line 69 of file VirtualButton.cs.
override string SiliconStudio.Paradox.Input.VirtualButton.ToString | ( | ) |
Definition at line 58 of file VirtualButton.cs.
readonly int SiliconStudio.Paradox.Input.VirtualButton.Id |
Unique Id for a particular button Type.
Definition at line 41 of file VirtualButton.cs.
readonly bool SiliconStudio.Paradox.Input.VirtualButton.IsPositiveAndNegative |
A boolean indicating whether this button supports positive and negative value.
Definition at line 56 of file VirtualButton.cs.
readonly string SiliconStudio.Paradox.Input.VirtualButton.Name |
Name of this button.
Definition at line 46 of file VirtualButton.cs.
readonly VirtualButtonType SiliconStudio.Paradox.Input.VirtualButton.Type |
Type of this button.
Definition at line 51 of file VirtualButton.cs.
|
staticget |
Gets all registered VirtualButton.
The registered virtual buttons.
Definition at line 94 of file VirtualButton.cs.