24 */ 25 26 #include "jni.h" 27 28 #import <pthread.h> 29 #import <assert.h> 30 31 #import <Cocoa/Cocoa.h> 32 33 #define DEBUG 1 34 35 // number of mouse buttons supported 36 extern int gNumberOfButtons; 37 38 // InputEvent mask array 39 extern jint* gButtonDownMasks; 40 41 @interface AWTToolkit : NSObject { } 42 + (long) getEventCount; 43 + (void) eventCountPlusPlus; 44 @end 45 46 /* 47 * Utility Macros 48 */ 49 50 /** Macro to cast a jlong to an Objective-C object (id). Casts to long on 32-bit systems to quiesce the compiler. */ 51 #define OBJC(jl) ((id)jlong_to_ptr(jl)) | 24 */ 25 26 #include "jni.h" 27 28 #import <pthread.h> 29 #import <assert.h> 30 31 #import <Cocoa/Cocoa.h> 32 33 #define DEBUG 1 34 35 // number of mouse buttons supported 36 extern int gNumberOfButtons; 37 38 // InputEvent mask array 39 extern jint* gButtonDownMasks; 40 41 @interface AWTToolkit : NSObject { } 42 + (long) getEventCount; 43 + (void) eventCountPlusPlus; 44 + (jint) scrollStateWithPhase: (NSEventPhase) phase 45 withMomentumPhase: (NSEventPhase) momentumPhase; 46 @end 47 48 /* 49 * Utility Macros 50 */ 51 52 /** Macro to cast a jlong to an Objective-C object (id). Casts to long on 32-bit systems to quiesce the compiler. */ 53 #define OBJC(jl) ((id)jlong_to_ptr(jl)) |