remove Copy trait from these event enums to be consistent with the rest

since the TextInput event cannot implement Copy, necessitating the
removal of the Copy trait from KeyboardEvent, it feels wrong to me to
have the other event enums implement Copy, because it is inconsistent.

so while this is less convenient potentially, it feels consistent.

probably not a big deal in the future one way or the other.
This commit is contained in:
Gered 2023-04-05 12:45:09 -04:00
parent 1c39832801
commit 231ba10f1e

View file

@ -15,7 +15,7 @@ use crate::system::input_devices::keyboard::codes::Keycode;
use crate::system::input_devices::keyboard::scancodes::Scancode;
use crate::system::input_devices::mouse::buttons::{MouseButton, MouseButtons};
#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)]
#[derive(Debug, Clone, Eq, PartialEq, Hash)]
pub enum WindowEvent {
Shown,
Hidden,
@ -95,7 +95,7 @@ pub enum KeyboardEvent {
},
}
#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)]
#[derive(Debug, Clone, Eq, PartialEq, Hash)]
pub enum MouseEvent {
MouseMotion {
x: i32, //