mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-11 21:31:29 +11:00
Merge pull request #50 from DavidPartouche/fix_warning
Fixed static uppercase warning
This commit is contained in:
commit
8e8549b4ac
|
@ -13,7 +13,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 +21,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)),
|
||||||
|
|
||||||
|
@ -38,14 +38,14 @@ pub type ScanCode = u8;
|
||||||
bitflags!(
|
bitflags!(
|
||||||
#[deriving(Show)]
|
#[deriving(Show)]
|
||||||
flags KeyModifiers: u8 {
|
flags KeyModifiers: u8 {
|
||||||
const LeftControlModifier = 1,
|
const LEFT_CONTROL_MODIFIER = 1,
|
||||||
const RightControlModifier = 2,
|
const RIGHT_CONTROL_MODIFIER = 2,
|
||||||
const LeftShitModifier = 4,
|
const LEFT_SHIFT_MODIFIER = 4,
|
||||||
const RightShitModifier = 8,
|
const RIGHT_SHIFT_MODIFIER = 8,
|
||||||
const LeftAltModifier = 16,
|
const LEFT_ALT_MODIFIER = 16,
|
||||||
const RightRightModifier = 32,
|
const RIGHT_ALT_MODIFIER = 32,
|
||||||
const NumLockModifier = 64,
|
const NUM_LOCK_MODIFIER = 64,
|
||||||
const CapsLockModifier = 128
|
const CAPS_LOCK_MODIFIER = 128
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue