@@ -12,25 +12,25 @@ pub type CGKeyCode = libc::uint16_t;
12
12
///
13
13
/// [Ref](http://opensource.apple.com/source/IOHIDFamily/IOHIDFamily-700/IOHIDSystem/IOKit/hidsystem/IOLLEvent.h)
14
14
bitflags ! {
15
- pub flags CGEventFlags : u64 {
16
- const CGEventFlagNull = 0 ,
15
+ pub struct CGEventFlags : u64 {
16
+ const CGEventFlagNull = 0 ;
17
17
18
18
// Device-independent modifier key bits.
19
- const CGEventFlagAlphaShift = 0x00010000 ,
20
- const CGEventFlagShift = 0x00020000 ,
21
- const CGEventFlagControl = 0x00040000 ,
22
- const CGEventFlagAlternate = 0x00080000 ,
23
- const CGEventFlagCommand = 0x00100000 ,
19
+ const CGEventFlagAlphaShift = 0x00010000 ;
20
+ const CGEventFlagShift = 0x00020000 ;
21
+ const CGEventFlagControl = 0x00040000 ;
22
+ const CGEventFlagAlternate = 0x00080000 ;
23
+ const CGEventFlagCommand = 0x00100000 ;
24
24
25
25
// Special key identifiers.
26
- const CGEventFlagHelp = 0x00400000 ,
27
- const CGEventFlagSecondaryFn = 0x00800000 ,
26
+ const CGEventFlagHelp = 0x00400000 ;
27
+ const CGEventFlagSecondaryFn = 0x00800000 ;
28
28
29
29
// Identifies key events from numeric keypad area on extended keyboards.
30
- const CGEventFlagNumericPad = 0x00200000 ,
30
+ const CGEventFlagNumericPad = 0x00200000 ;
31
31
32
32
// Indicates if mouse/pen movement events are not being coalesced
33
- const CGEventFlagNonCoalesced = 0x00000100 ,
33
+ const CGEventFlagNonCoalesced = 0x00000100 ;
34
34
}
35
35
}
36
36
0 commit comments