Struct yy_typings::object_yy::MouseButton [−][src]
pub struct MouseButton {
pub mb_code: MouseButtonCode,
pub local: bool,
}
Fields
mb_code: MouseButtonCode
The mouse button code used for this input.
local: bool
Whether the input is a “global” input, or a “local” input. In the Gms2 IDE, these are separated into different categories. “Local” events only file when the object itself is clicked on, while “global” can be fire whenever the input is held at all.
Implementations
The offset for the event_num
if this mouse button is a global. We use
this number internally for serialization/deserialization.
Calculates the event_num
offset for this MouseButton
, largely for
internal use in serialization and deserialization. We make this
public as this library attempts to be 100% public.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for MouseButton
impl Send for MouseButton
impl Sync for MouseButton
impl Unpin for MouseButton
impl UnwindSafe for MouseButton
Blanket Implementations
Mutably borrows from an owned value. Read more