pub struct ActionState {
pub kind: ActionStateKind,
pub cockpit_index: Option<u8>,
pub uv: Option<Vec2>,
}Expand description
Zustand einer Aktion.
The state of an action.
Fields§
§kind: ActionStateKindDrück- bzw. Loslasszustand der Aktion.
Pressed/released state of the action.
cockpit_index: Option<u8>Cockpit-Index, wenn die Aktion aus einem bestimmten Cockpit stammt.
Cockpit index when the action originates from a specific cockpit.
uv: Option<Vec2>Optionale UV-Koordinaten für mausbasierte Aktionen.
Optional UV coordinates for mouse-based actions.
Trait Implementations§
Source§impl Clone for ActionState
impl Clone for ActionState
impl Copy for ActionState
Source§impl Debug for ActionState
impl Debug for ActionState
Source§impl<'de> Deserialize<'de> for ActionState
impl<'de> Deserialize<'de> for ActionState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ActionState
impl PartialEq for ActionState
Source§impl Serialize for ActionState
impl Serialize for ActionState
impl StructuralPartialEq for ActionState
Auto Trait Implementations§
impl Freeze for ActionState
impl RefUnwindSafe for ActionState
impl Send for ActionState
impl Sync for ActionState
impl Unpin for ActionState
impl UnsafeUnpin for ActionState
impl UnwindSafe for ActionState
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