pub enum ButtonId {
LeftClick,
RightClick,
MiddleClick,
Back,
Forward,
DpiToggle,
Thumbwheel,
GestureButton,
}Expand description
One of the user-rebindable hotspots on a Logi mouse. The order matches the
physical layout from front to side; ButtonId::ALL is consumed by the
default-binding generator and the popover trigger list.
Variants§
LeftClick
RightClick
MiddleClick
Back
Forward
DpiToggle
The “ModeShift” button under the wheel — typically used for SmartShift /
DPI cycle. Named DpiToggle for historical reasons.
Thumbwheel
The horizontal thumb wheel found on MX-line devices. Bind a click action; rotation isn’t bindable yet (P1.2 / P1.5 follow-up).
GestureButton
The thumb-pad gesture button on MX-line devices. The press itself fires the bound action; swipe directions are P1.5 territory.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ButtonId
impl<'de> Deserialize<'de> for ButtonId
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ButtonId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ButtonId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for ButtonId
impl Ord for ButtonId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for ButtonId
impl PartialOrd for ButtonId
Source§impl Serialize for ButtonId
impl Serialize for ButtonId
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for ButtonId
impl Eq for ButtonId
impl StructuralPartialEq for ButtonId
Auto Trait Implementations§
impl Freeze for ButtonId
impl RefUnwindSafe for ButtonId
impl Send for ButtonId
impl Sync for ButtonId
impl Unpin for ButtonId
impl UnsafeUnpin for ButtonId
impl UnwindSafe for ButtonId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.