|
Empeld
Empeld plugin documentation.
|
Class that allows you to bind to keys and mouse buttons More...
Public Member Functions | |
| void | Listen (string bindName, Key defaultKey) |
| Listen to a key, with the assigned bind name More... | |
| void | Listen (string bindName, MouseButton defaultButton) |
| Listens to a button, with the given assigned name More... | |
| void | Bind (string bindName, Action action) |
| Do an action when the event attached to the bind occurs More... | |
| void | Bind (string bindName, InputDirection direction, Action action) |
| Bind an action to a given name during a direction More... | |
| void | Bind (string bindName, Key defaultKey, Action keyBind) |
| Bind an action, during the down-direction, of a key More... | |
| void | Bind (string bindName, Key defaultKey, InputDirection direction, Action keyBind) |
| Bind an action to a default key and direction More... | |
| void | Bind (string bindName, MouseButton defaultButton, Action mouseBind) |
| Bind a mouse button to the given action More... | |
| void | Bind (string bindName, MouseButton defaultButton, InputDirection direction, Action mouseBind) |
| Bind mouse button to given action More... | |
| void | BindMouseWheel (MouseWheelAction callback) |
| Bind a callback when the mouse wheel is scrolled More... | |
| void | BindMouseMove (MouseMoveAction callback) |
| Bind an event when an absolute-mouse-move occurs More... | |
| bool | IsDown (string bindName) |
| Gets whether or not the current bind name is in the "Down" position (Key or mouse) More... | |
| Vector2d | GetMouseDelta (bool reset=true) |
| Gets the mouse delta, for, eg, moving FPS rotation More... | |
| string | GetBoundEventName (string bindName) |
| Get the name of the input that is bound to the bindName Eg return "K" for Key.K or "Left" for Mouse left Used for display only More... | |
Properties | |
| string | Name [get] |
| Gets the name of the input binding More... | |
| string | Description [get, set] |
| Gets or sets the description. More... | |
| bool | CaptureAll [get, set] |
| If true, the binding will block all other bindings that have been enabled before it More... | |
| MouseMode | MouseMode [get, set] |
| Gets or sets the mouse mode. More... | |
Class that allows you to bind to keys and mouse buttons
| void pluginbase.Objects.Input.IInputBinding.Bind | ( | string | bindName, |
| Action | action | ||
| ) |
Do an action when the event attached to the bind occurs
| bindName | Bind name. |
| action | Action. |
| void pluginbase.Objects.Input.IInputBinding.Bind | ( | string | bindName, |
| InputDirection | direction, | ||
| Action | action | ||
| ) |
Bind an action to a given name during a direction
| bindName | Bind name. |
| direction | Direction. |
| action | Action. |
| void pluginbase.Objects.Input.IInputBinding.Bind | ( | string | bindName, |
| Key | defaultKey, | ||
| Action | keyBind | ||
| ) |
Bind an action, during the down-direction, of a key
| bindName | Bind name. |
| defaultKey | Default key. |
| keyBind | Key bind. |
| void pluginbase.Objects.Input.IInputBinding.Bind | ( | string | bindName, |
| Key | defaultKey, | ||
| InputDirection | direction, | ||
| Action | keyBind | ||
| ) |
Bind an action to a default key and direction
| bindName | Bind name. |
| defaultKey | Default key. |
| direction | Direction. |
| keyBind | Key bind. |
| void pluginbase.Objects.Input.IInputBinding.Bind | ( | string | bindName, |
| MouseButton | defaultButton, | ||
| Action | mouseBind | ||
| ) |
Bind a mouse button to the given action
| bindName | Bind name. |
| defaultButton | Default button. |
| mouseBind | Mouse bind. |
| void pluginbase.Objects.Input.IInputBinding.Bind | ( | string | bindName, |
| MouseButton | defaultButton, | ||
| InputDirection | direction, | ||
| Action | mouseBind | ||
| ) |
Bind mouse button to given action
| bindName | Bind name. |
| defaultButton | Default button. |
| direction | Direction. |
| mouseBind | Mouse bind. |
| void pluginbase.Objects.Input.IInputBinding.BindMouseMove | ( | MouseMoveAction | callback | ) |
Bind an event when an absolute-mouse-move occurs
| callback | Callback. |
| void pluginbase.Objects.Input.IInputBinding.BindMouseWheel | ( | MouseWheelAction | callback | ) |
Bind a callback when the mouse wheel is scrolled
| callback | Callback. |
| string pluginbase.Objects.Input.IInputBinding.GetBoundEventName | ( | string | bindName | ) |
Get the name of the input that is bound to the bindName Eg return "K" for Key.K or "Left" for Mouse left Used for display only
| bindName | Bind name. |
| Vector2d pluginbase.Objects.Input.IInputBinding.GetMouseDelta | ( | bool | reset = true | ) |
Gets the mouse delta, for, eg, moving FPS rotation
| reset | If set to true reset. |
| bool pluginbase.Objects.Input.IInputBinding.IsDown | ( | string | bindName | ) |
Gets whether or not the current bind name is in the "Down" position (Key or mouse)
true if this instance is down the specified bindName; otherwise, false.| bindName | Bind name. |
| void pluginbase.Objects.Input.IInputBinding.Listen | ( | string | bindName, |
| Key | defaultKey | ||
| ) |
Listen to a key, with the assigned bind name
| bindName | Bind name. |
| defaultKey | Default key. |
| void pluginbase.Objects.Input.IInputBinding.Listen | ( | string | bindName, |
| MouseButton | defaultButton | ||
| ) |
Listens to a button, with the given assigned name
| bindName | Bind name. |
| defaultButton | Default button. |
|
getset |
If true, the binding will block all other bindings that have been enabled before it
true if capture all; otherwise, false.
|
getset |
Gets or sets the description.
The description.
|
getset |
Gets or sets the mouse mode.
The mouse mode.
|
get |
Gets the name of the input binding
The name.