@@ -451,7 +451,7 @@ impl WindowEvent {
451
451
452
452
}
453
453
454
- #[ derive( Clone , PartialEq ) ]
454
+ #[ derive( Clone , PartialEq , Debug ) ]
455
455
/// Different event types.
456
456
pub enum Event {
457
457
Quit { timestamp : u32 } ,
@@ -709,52 +709,6 @@ pub enum Event {
709
709
}
710
710
}
711
711
712
- impl :: std:: fmt:: Debug for Event {
713
- fn fmt ( & self , out : & mut :: std:: fmt:: Formatter ) -> :: std:: fmt:: Result {
714
- out. write_str ( match * self {
715
- Event :: Quit { ..} => "Event::Quit" ,
716
- Event :: AppTerminating { ..} => "Event::AppTerminating" ,
717
- Event :: AppLowMemory { ..} => "Event::AppLowMemory" ,
718
- Event :: AppWillEnterBackground { ..} => "Event::AppWillEnterBackground" ,
719
- Event :: AppDidEnterBackground { ..} => "Event::AppDidEnterBackground" ,
720
- Event :: AppWillEnterForeground { ..} => "Event::AppWillEnterForeground" ,
721
- Event :: AppDidEnterForeground { ..} => "Event::AppDidEnterForeground" ,
722
- Event :: Window { ..} => "Event::Window" ,
723
- Event :: KeyDown { ..} => "Event::KeyDown" ,
724
- Event :: KeyUp { ..} => "Event::KeyUp" ,
725
- Event :: TextEditing { ..} => "Event::TextEditing" ,
726
- Event :: TextInput { ..} => "Event::TextInput" ,
727
- Event :: MouseMotion { ..} => "Event::MouseMotion" ,
728
- Event :: MouseButtonDown { ..} => "Event::MouseButtonDown" ,
729
- Event :: MouseButtonUp { ..} => "Event::MouseButtonUp" ,
730
- Event :: MouseWheel { ..} => "Event::MouseWheel" ,
731
- Event :: JoyAxisMotion { ..} => "Event::JoyAxisMotion" ,
732
- Event :: JoyBallMotion { ..} => "Event::JoyBallMotion" ,
733
- Event :: JoyHatMotion { ..} => "Event::JoyHatMotion" ,
734
- Event :: JoyButtonDown { ..} => "Event::JoyButtonDown" ,
735
- Event :: JoyButtonUp { ..} => "Event::JoyButtonUp" ,
736
- Event :: JoyDeviceAdded { ..} => "Event::JoyDeviceAdded" ,
737
- Event :: JoyDeviceRemoved { ..} => "Event::JoyDeviceRemoved" ,
738
- Event :: ControllerAxisMotion { ..} => "Event::ControllerAxisMotion" ,
739
- Event :: ControllerButtonDown { ..} => "Event::ControllerButtonDown" ,
740
- Event :: ControllerButtonUp { ..} => "Event::ControllerButtonUp" ,
741
- Event :: ControllerDeviceAdded { ..} => "Event::ControllerDeviceAdded" ,
742
- Event :: ControllerDeviceRemoved { ..} => "Event::ControllerDeviceRemoved" ,
743
- Event :: ControllerDeviceRemapped { ..} => "Event::ControllerDeviceRemapped" ,
744
- Event :: FingerDown { ..} => "Event::FingerDown" ,
745
- Event :: FingerUp { ..} => "Event::FingerUp" ,
746
- Event :: FingerMotion { ..} => "Event::FingerMotion" ,
747
- Event :: DollarGesture { ..} => "Event::DollarGesture" ,
748
- Event :: DollarRecord { ..} => "Event::DollarRecord" ,
749
- Event :: MultiGesture { ..} => "Event::MultiGesture" ,
750
- Event :: ClipboardUpdate { ..} => "Event::ClipboardUpdate" ,
751
- Event :: DropFile { ..} => "Event::DropFile" ,
752
- Event :: User { ..} => "Event::User" ,
753
- Event :: Unknown { ..} => "Event::Unknown" ,
754
- } )
755
- }
756
- }
757
-
758
712
/// Helper function to make converting scancodes
759
713
/// and keycodes to primitive `SDL_Keysym` types.
760
714
fn mk_keysym < S , K > ( scancode : S ,
0 commit comments