pub struct CustomInputEventEvent {
pub cursor_direction: &'static str,
pub cursor_display_location: LuaAny,
pub cursor_position: LuaAny,
pub element: LuaGuiElement,
pub in_gui: bool,
pub input_name: &'static str,
pub name: &'static str,
pub player_index: u32,
pub selected_prototype: LuaAny,
pub tick: u32,
}Expand description
Called when a CustomInputPrototype is activated.
Fields§
§cursor_direction: &'static str§cursor_display_location: LuaAny§cursor_position: LuaAny§element: LuaGuiElement§in_gui: bool§input_name: &'static str§name: &'static str§player_index: u32§selected_prototype: LuaAny§tick: u32Trait Implementations§
Source§impl Clone for CustomInputEventEvent
impl Clone for CustomInputEventEvent
Source§fn clone(&self) -> CustomInputEventEvent
fn clone(&self) -> CustomInputEventEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CustomInputEventEvent
Source§impl Debug for CustomInputEventEvent
impl Debug for CustomInputEventEvent
Source§impl Default for CustomInputEventEvent
impl Default for CustomInputEventEvent
Source§fn default() -> CustomInputEventEvent
fn default() -> CustomInputEventEvent
Returns the “default value” for a type. Read more
Source§impl PartialEq for CustomInputEventEvent
impl PartialEq for CustomInputEventEvent
impl StructuralPartialEq for CustomInputEventEvent
Auto Trait Implementations§
impl Freeze for CustomInputEventEvent
impl RefUnwindSafe for CustomInputEventEvent
impl Send for CustomInputEventEvent
impl Sync for CustomInputEventEvent
impl Unpin for CustomInputEventEvent
impl UnsafeUnpin for CustomInputEventEvent
impl UnwindSafe for CustomInputEventEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more