equal
deleted
inserted
replaced
155 public static final int ALT_GRAPH_DOWN_MASK = 1 << 13; |
155 public static final int ALT_GRAPH_DOWN_MASK = 1 << 13; |
156 |
156 |
157 /** |
157 /** |
158 * An array of extended modifiers for additional buttons. |
158 * An array of extended modifiers for additional buttons. |
159 * @see getButtonDownMasks |
159 * @see getButtonDownMasks |
|
160 * There are twenty buttons fit into 4byte space. |
|
161 * one more bit is reserved for FIRST_HIGH_BIT. |
160 * @since 7.0 |
162 * @since 7.0 |
161 */ |
163 */ |
162 private static final int [] BUTTON_DOWN_MASK = new int [] { BUTTON1_DOWN_MASK, |
164 private static final int [] BUTTON_DOWN_MASK = new int [] { BUTTON1_DOWN_MASK, |
163 BUTTON2_DOWN_MASK, |
165 BUTTON2_DOWN_MASK, |
164 BUTTON3_DOWN_MASK, |
166 BUTTON3_DOWN_MASK, |
167 1<<16, |
169 1<<16, |
168 1<<17, |
170 1<<17, |
169 1<<18, |
171 1<<18, |
170 1<<19, |
172 1<<19, |
171 1<<20, |
173 1<<20, |
172 1<<21 }; |
174 1<<21, |
|
175 1<<22, |
|
176 1<<23, |
|
177 1<<24, |
|
178 1<<25, |
|
179 1<<26, |
|
180 1<<27, |
|
181 1<<28, |
|
182 1<<29, |
|
183 1<<30}; |
173 |
184 |
174 /** |
185 /** |
175 * A method to access an array of extended modifiers for additional buttons. |
186 * A method to access an array of extended modifiers for additional buttons. |
176 * @since 7.0 |
187 * @since 7.0 |
177 */ |
188 */ |
238 // the constant below MUST be updated if any extra modifier |
249 // the constant below MUST be updated if any extra modifier |
239 // bits are to be added! |
250 // bits are to be added! |
240 // in fact, it is undesirable to add modifier bits |
251 // in fact, it is undesirable to add modifier bits |
241 // to the same field as this may break applications |
252 // to the same field as this may break applications |
242 // see bug# 5066958 |
253 // see bug# 5066958 |
243 static final int FIRST_HIGH_BIT = 1 << 22; |
254 static final int FIRST_HIGH_BIT = 1 << 31; |
244 |
255 |
245 static final int JDK_1_3_MODIFIERS = SHIFT_DOWN_MASK - 1; |
256 static final int JDK_1_3_MODIFIERS = SHIFT_DOWN_MASK - 1; |
246 static final int HIGH_MODIFIERS = ~( FIRST_HIGH_BIT - 1 ); |
257 static final int HIGH_MODIFIERS = ~( FIRST_HIGH_BIT - 1 ); |
247 |
258 |
248 /** |
259 /** |