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) scrollStateWithEvent: (NSEvent*) event;
45 @end
46
47 /*
48 * Utility Macros
49 */
50
51 /** Macro to cast a jlong to an Objective-C object (id). Casts to long on 32-bit systems to quiesce the compiler. */
52 #define OBJC(jl) ((id)jlong_to_ptr(jl))
|
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) scrollStateWithEvent: (NSEvent*) event;
45 + (BOOL) hasPreciseScrollingDeltas: (NSEvent*) event;
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))
|