Skip to content

Commit a7c53a2

Browse files
committed
Add prefix to bitflags
Necessary until bitflags/bitflags/issues/21 is implemented.
1 parent 34d6783 commit a7c53a2

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/event.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,24 @@ pub type CGKeyCode = libc::uint16_t;
1313
/// [Ref](http://opensource.apple.com/source/IOHIDFamily/IOHIDFamily-700/IOHIDSystem/IOKit/hidsystem/IOLLEvent.h)
1414
bitflags! {
1515
pub flags CGEventFlags: u64 {
16-
const Null = 0,
16+
const CGEventFlagNull = 0,
1717

1818
// Device-independent modifier key bits.
19-
const AlphaShift = 0x00010000,
20-
const Shift = 0x00020000,
21-
const Control = 0x00040000,
22-
const Alternate = 0x00080000,
23-
const Command = 0x00100000,
19+
const CGEventFlagAlphaShift = 0x00010000,
20+
const CGEventFlagShift = 0x00020000,
21+
const CGEventFlagControl = 0x00040000,
22+
const CGEventFlagAlternate = 0x00080000,
23+
const CGEventFlagCommand = 0x00100000,
2424

2525
// Special key identifiers.
26-
const Help = 0x00400000,
27-
const SecondaryFn = 0x00800000,
26+
const CGEventFlagHelp = 0x00400000,
27+
const CGEventFlagSecondaryFn = 0x00800000,
2828

2929
// Identifies key events from numeric keypad area on extended keyboards.
30-
const NumericPad = 0x00200000,
30+
const CGEventFlagNumericPad = 0x00200000,
3131

3232
// Indicates if mouse/pen movement events are not being coalesced
33-
const NonCoalesced = 0x00000100,
33+
const CGEventFlagNonCoalesced = 0x00000100,
3434
}
3535
}
3636

0 commit comments

Comments
 (0)