mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 06:11:30 +11:00
Fixed static uppercase warning
This commit is contained in:
parent
bfbc462511
commit
10f625c2c8
|
@ -1,3 +1,5 @@
|
||||||
|
#![allow(non_uppercase_statics)]
|
||||||
|
|
||||||
#[deriving(Clone,Show)]
|
#[deriving(Clone,Show)]
|
||||||
pub enum Event {
|
pub enum Event {
|
||||||
/// The size of the window has changed.
|
/// The size of the window has changed.
|
||||||
|
@ -13,7 +15,7 @@ pub enum Event {
|
||||||
ReceivedCharacter(char),
|
ReceivedCharacter(char),
|
||||||
|
|
||||||
/// The window gained or lost focus.
|
/// The window gained or lost focus.
|
||||||
///
|
///
|
||||||
/// The parameter is true if the window has gained focus, and false if it has lost focus.
|
/// The parameter is true if the window has gained focus, and false if it has lost focus.
|
||||||
Focused(bool),
|
Focused(bool),
|
||||||
|
|
||||||
|
@ -21,7 +23,7 @@ pub enum Event {
|
||||||
KeyboardInput(ElementState, ScanCode, Option<VirtualKeyCode>, KeyModifiers),
|
KeyboardInput(ElementState, ScanCode, Option<VirtualKeyCode>, KeyModifiers),
|
||||||
|
|
||||||
/// The cursor has moved on the window.
|
/// The cursor has moved on the window.
|
||||||
///
|
///
|
||||||
/// The parameter are the (x,y) coords in pixels relative to the top-left corner of the window.
|
/// The parameter are the (x,y) coords in pixels relative to the top-left corner of the window.
|
||||||
MouseMoved((int, int)),
|
MouseMoved((int, int)),
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue