InputEventMouseButton

Input event type for mouse button events.

Contains mouse click information. See Node._input.

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Functions

getButtonIndex
long getButtonIndex()
getFactor
double getFactor()
isDoubleclick
bool isDoubleclick()
opAssign
typeof(null) opAssign(typeof(null) n)
opEquals
bool opEquals(InputEventMouseButton other)
opEquals
bool opEquals(typeof(null) n)
setButtonIndex
void setButtonIndex(long button_index)
setDoubleclick
void setDoubleclick(bool doubleclick)
setFactor
void setFactor(double factor)
setPressed
void setPressed(bool pressed)
toHash
size_t toHash()

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

buttonIndex
long buttonIndex [@property getter]
long buttonIndex [@property setter]

The mouse button identifier, one of the buttonlist button or button wheel constants.

doubleclick
bool doubleclick [@property getter]
bool doubleclick [@property setter]

If true, the mouse button's state is a double-click.

factor
double factor [@property getter]
double factor [@property setter]

The amount (or delta) of the event. When used for high-precision scroll events, this indicates the scroll amount (vertical or horizontal). This is only supported on some platforms; the reported sensitivity varies depending on the platform. May be 0 if not supported.

pressed
bool pressed [@property getter]
bool pressed [@property setter]

If true, the mouse button's state is pressed. If false, the mouse button's state is released.

Static functions

_new
InputEventMouseButton _new()

Construct a new instance of InputEventMouseButton. Note: use memnew!InputEventMouseButton instead.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

GDNativeClassBinding
struct GDNativeClassBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(ToRef) as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta