Adding PointInteraction trait, etc.

This commit is contained in:
Evan Simkowitz committed 2023-08-22 23:29:24 -04:00
1 parent de87ba6548
commit cc3f60dd2f
6 files changed
+120 -201

No files matched your search

+2 -1
View File
@@ -8,9 +8,10 @@ use keyboard_types::Location;
/// A mouse button type (such as Primary/Secondary)
// note: EnumSetType also derives Copy and Clone for some reason
#[allow(clippy::unused_unit)]
#[derive(EnumSetType, Debug)]
#[derive(EnumSetType, Debug, Default)]
#[cfg_attr(feature = "serialize", derive(serde::Serialize, serde::Deserialize))]
pub enum MouseButton {
#[default]
/// Primary button (typically the left button)
Primary,
/// Secondary button (typically the right button)