LookBinding ​
Inherits: RefCounted
A mouse gesture that a ControllerLogic or CameraLogic wants from the InputManager: "when this button is held (and optionally dragged), I want look input of this kind". Returned from ControllerLogic.get_look_bindings() / CameraLogic.get_look_bindings().
Variables ​
int | button_index | 0 |
Kind | kind | Kind.NONE |
bool | requires_drag | false |
Methods ​
String | kind_name( look_kind: Kind ) static |
String | button_name( button_index: int ) static |
int | priority( look_kind: Kind ) static |
Enumerations ​
enum Kind ​
The options of kind: none, character look, free look, view rotate, click only.
- NONE =
0 - CHARACTER_LOOK =
1 - FREE_LOOK =
2 - VIEW_ROTATE =
3 - CLICK_ONLY =
4
Variable descriptions ​
int button_index = 0 ​
Mouse button this gesture is bound to (MOUSE_BUTTON_*)
Kind kind = Kind.NONE ​
What the gesture does (turn the character, rotate the view, free look ...).
bool requires_drag = false ​
false: the look starts on press. true: it starts only after the pointer is dragged past the drag threshold; a release before that is reported as a click instead.
Method descriptions ​
String kind_name( look_kind: Kind ) ​
Human-readable name for messages
String button_name( button_index: int ) ​
Human-readable name of a mouse button for messages
int priority( look_kind: Kind ) ​
Higher wins when several gestures are active at once (only the winner receives look deltas)