Changeset 196:1e7701c27c03 for dwt/DWT.d
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
dwt/DWT.d
r192 r196 1767 1767 * @since 2.1 1768 1768 */ 1769 public static const int MODIFIER_MASK ;1769 public static const int MODIFIER_MASK = ALT | SHIFT | CTRL | COMMAND; 1770 1770 1771 1771 /** … … 1817 1817 * @since 2.1 1818 1818 */ 1819 public static const int BUTTON_MASK ;1819 public static const int BUTTON_MASK = BUTTON1 | BUTTON2 | BUTTON3 | BUTTON4 | BUTTON5; 1820 1820 1821 1821 /** … … 1827 1827 * @since 2.1 1828 1828 */ 1829 public static const int MOD1 ;1829 public static const int MOD1 = CONTROL; 1830 1830 1831 1831 /** … … 1837 1837 * @since 2.1 1838 1838 */ 1839 public static const int MOD2 ;1839 public static const int MOD2 = SHIFT; 1840 1840 1841 1841 /** … … 1845 1845 * @since 2.1 1846 1846 */ 1847 public static const int MOD3 ;1847 public static const int MOD3 = ALT; 1848 1848 1849 1849 /** … … 1853 1853 * @since 2.1 1854 1854 */ 1855 public static const int MOD4 ;1855 public static const int MOD4 = 0; 1856 1856 1857 1857 /** … … 3633 3633 } 3634 3634 3635 /+3636 static {3637 /*3638 * These values represent bit masks that may need to3639 * expand in the future. Therefore they are not initialized3640 * in the declaration to stop the compiler from inlining.3641 */3642 BUTTON_MASK = BUTTON1 | BUTTON2 | BUTTON3 | BUTTON4 | BUTTON5;3643 MODIFIER_MASK = ALT | SHIFT | CTRL | COMMAND;3644 3645 /*3646 * These values can be different on different platforms.3647 * Therefore they are not initialized in the declaration3648 * to stop the compiler from inlining.3649 */3650 char[] platform = getPlatform ();3651 if ("carbon".equals (platform)) { //$NON-NLS-1$3652 MOD1 = COMMAND;3653 MOD2 = SHIFT;3654 MOD3 = ALT;3655 MOD4 = CONTROL;3656 } else {3657 MOD1 = CONTROL;3658 MOD2 = SHIFT;3659 MOD3 = ALT;3660 MOD4 = 0;3661 }3662 3635 } 3663 +/3664 3665 }
