< prev index next >
src/java.desktop/macosx/native/libawt_lwawt/awt/LWCToolkit.m
Print this page
*** 41,50 ****
--- 41,57 ----
#import "sizecalc.h"
#import <JavaRuntimeSupport/JavaRuntimeSupport.h>
+ // SCROLL EVENT MASK
+ #define SCROLL_PHASE_UNSUPPORTED 1
+ #define SCROLL_PHASE_BEGAN 2
+ #define SCROLL_PHASE_CONTINUED 3
+ #define SCROLL_PHASE_CANCELLED 4
+ #define SCROLL_PHASE_ENDED 5
+
int gNumberOfButtons;
jint* gButtonDownMasks;
// Indicates that the app has been started with -XstartOnFirstThread
// (directly or via WebStart settings), and AWT should not run its
*** 70,79 ****
--- 77,95 ----
+ (void) eventCountPlusPlus{
eventCount++;
}
+ + (jint) scrollPhaseToInt: (NSEventPhase) phase {
+ if (!phase) return SCROLL_PHASE_UNSUPPORTED;
+ switch (phase) {
+ case NSEventPhaseBegan: return SCROLL_PHASE_BEGAN;
+ case NSEventPhaseCancelled: return SCROLL_PHASE_CANCELLED;
+ case NSEventPhaseEnded: return SCROLL_PHASE_ENDED;
+ }
+ return SCROLL_PHASE_CONTINUED;
+ }
@end
@interface AWTRunLoopObject : NSObject {
BOOL _shouldEndRunLoop;
< prev index next >