You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(134) |
Sep
(52) |
Oct
(13) |
Nov
(342) |
Dec
(163) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(44) |
Feb
(62) |
Mar
(158) |
Apr
(38) |
May
(70) |
Jun
(58) |
Jul
(104) |
Aug
(207) |
Sep
(83) |
Oct
(122) |
Nov
(23) |
Dec
(49) |
| 2004 |
Jan
(119) |
Feb
(132) |
Mar
(192) |
Apr
(140) |
May
(77) |
Jun
(74) |
Jul
(201) |
Aug
(63) |
Sep
(102) |
Oct
(70) |
Nov
(173) |
Dec
(78) |
| 2005 |
Jan
(174) |
Feb
(197) |
Mar
(105) |
Apr
(59) |
May
(77) |
Jun
(43) |
Jul
(21) |
Aug
(18) |
Sep
(47) |
Oct
(37) |
Nov
(74) |
Dec
(50) |
| 2006 |
Jan
(44) |
Feb
(19) |
Mar
(32) |
Apr
(24) |
May
(31) |
Jun
(55) |
Jul
(138) |
Aug
(28) |
Sep
(12) |
Oct
(41) |
Nov
(58) |
Dec
(24) |
| 2007 |
Jan
(28) |
Feb
(14) |
Mar
(10) |
Apr
(68) |
May
(30) |
Jun
(26) |
Jul
(18) |
Aug
(63) |
Sep
(19) |
Oct
(29) |
Nov
(20) |
Dec
(10) |
| 2008 |
Jan
(38) |
Feb
(7) |
Mar
(37) |
Apr
(120) |
May
(41) |
Jun
(36) |
Jul
(39) |
Aug
(24) |
Sep
(28) |
Oct
(30) |
Nov
(36) |
Dec
(75) |
| 2009 |
Jan
(46) |
Feb
(22) |
Mar
(50) |
Apr
(70) |
May
(134) |
Jun
(105) |
Jul
(75) |
Aug
(34) |
Sep
(38) |
Oct
(34) |
Nov
(19) |
Dec
(20) |
| 2010 |
Jan
(11) |
Feb
(20) |
Mar
(65) |
Apr
(83) |
May
(104) |
Jun
(73) |
Jul
(78) |
Aug
(57) |
Sep
(43) |
Oct
(35) |
Nov
(9) |
Dec
(4) |
| 2011 |
Jan
(21) |
Feb
(11) |
Mar
(18) |
Apr
(10) |
May
(18) |
Jun
(15) |
Jul
(48) |
Aug
(25) |
Sep
(17) |
Oct
(45) |
Nov
(15) |
Dec
(12) |
| 2012 |
Jan
(21) |
Feb
(9) |
Mar
(12) |
Apr
(9) |
May
(9) |
Jun
(5) |
Jul
(1) |
Aug
(10) |
Sep
(12) |
Oct
(1) |
Nov
(28) |
Dec
(5) |
| 2013 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
| 2015 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
| 2016 |
Jan
(2) |
Feb
(1) |
Mar
(1) |
Apr
(1) |
May
(2) |
Jun
|
Jul
(1) |
Aug
(2) |
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
1
(2) |
2
(8) |
3
(4) |
4
(6) |
5
(1) |
6
|
|
7
(8) |
8
|
9
(11) |
10
(5) |
11
(1) |
12
|
13
|
|
14
|
15
|
16
(3) |
17
(1) |
18
|
19
|
20
|
|
21
(1) |
22
(1) |
23
(2) |
24
|
25
(1) |
26
(11) |
27
|
|
28
(5) |
29
(5) |
30
(7) |
|
|
|
|
|
From: Elias N. <eli...@us...> - 2003-09-23 11:01:14
|
Update of /cvsroot/java-game-lib/LWJGL/src/native/macosx In directory sc8-pr-cvs1:/tmp/cvs-serv18632/src/native/macosx Modified Files: org_lwjgl_opengl_Window.cpp Log Message: Removed mac os x hack again Index: org_lwjgl_opengl_Window.cpp CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/macosx/org_lwjgl_opengl_Window.cpp =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/native/macosx/org_lwjgl_opengl_Window.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- org_lwjgl_opengl_Window.cpp 9 Sep 2003 18:11:01 -0000 1.3 +++ org_lwjgl_opengl_Window.cpp 23 Sep 2003 11:00:37 -0000 1.4 @@ -56,6 +56,20 @@ env->DeleteLocalRef(cls); } +/*static void dumpRootMenu() { + MenuRef root = AcquireRootMenu(); + if (root == NULL) + printf("NULL menu\n"); + UInt16 count = CountMenuItems(root); + printf("item count: %d\n", count); + for (int i = 0; i < count; i++) { + Str255 menu_text; + GetMenuItemText(root, i, menu_text); + printf("Item text: %s\n", menu_text); + } + ReleaseMenu(root); +} +*/ static void setWindowTitle(JNIEnv *env, jstring title_obj) { const char* title = env->GetStringUTFChars(title_obj, NULL); int str_len = env->GetStringUTFLength(title_obj); @@ -67,17 +81,28 @@ return; } SetWindowTitleWithCFString(win_ref, cf_title); +/* MenuRef root; + OSStatus err = CreateNewMenu(1, 0, &root); + assert(err == noErr); + MenuItemIndex item_index; + err = AppendMenuItemTextWithCFString(root, cf_title, 0, FOUR_CHAR_CODE('1234'), &item_index); + assert(err == noErr); + err = SetRootMenu(root); + assert(err == noErr); + ReleaseMenu(root);*/ CFRelease(cf_title); env->ReleaseStringUTFChars(title_obj, title); +// dumpRootMenu(); } static pascal OSStatus doWindowClose(EventHandlerCallRef next_handler, EventRef event, void *user_data) { +printf("Close requested\n"); close_requested = true; return noErr; } static void registerEventHandlers(void) { -/* EventTargetRef event_target = GetWindowEventTarget(win_ref); + /*EventTargetRef event_target = GetWindowEventTarget(win_ref); status = InstallStandardEventHandler(event_target); if (noErr != status) { DisposeWindow(win_ref); @@ -92,18 +117,50 @@ DisposeEventHandlerUPP(handlerUPP); } + JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_Window_nIsCloseRequested(JNIEnv *, jclass) { const bool saved = close_requested; close_requested = false; return saved; } +OSErr aehandler(const AppleEvent * theAppleEvent, AppleEvent * reply, SInt32 handlerRefcon) { + printf("handler called\n"); + return noErr; +} + JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Window_nCreate(JNIEnv *env, jclass clazz, jstring title, jint x, jint y, jint width, jint height, jboolean fullscreen, jint bpp, jint alpha, jint depth, jint stencil) { Rect rect; OSStatus status; - const WindowAttributes window_attr = kWindowStandardDocumentAttributes/*kWindowCloseBoxAttribute| - kWindowCollapseBoxAttribute*/| + const WindowAttributes window_attr = kWindowCloseBoxAttribute| + kWindowCollapseBoxAttribute| kWindowStandardHandlerAttribute; +// CPSEnableForegroundOperation(); + /*//AEObjectInit(); + AEEventHandlerUPP handler = NewAEEventHandlerUPP(aehandler); + if (noErr != AEInstallEventHandler(kCoreEventClass, kAEOpenApplication, handler, 0, FALSE)) + printf("error\n"); + if (noErr != AEInstallEventHandler(kCoreEventClass, kAEOpenDocuments, handler, 0, FALSE)) + printf("error\n"); + if (noErr != AEInstallEventHandler(kCoreEventClass, kAEPrintDocuments, handler, 0, FALSE)) + printf("error\n"); + if (noErr != AEInstallEventHandler(kCoreEventClass, kAEQuitApplication, handler, 0, FALSE)) + printf("error\n"); + DisposeAEEventHandlerUPP(handler);*/ + /* + * Hacks to activate the application window + */ + /*CFBundleRef bundle = CFBundleGetMainBundle(); + if (bundle != NULL) { + printf("bundle != NULL\n"); + CFRelease(bundle); + }*/ + /*ProcessSerialNumber PSN; + GetCurrentProcess(&PSN); + SetFrontProcess(&PSN); + EventQueueRef queue = GetCurrentEventQueue(); + if (queue == NULL) + printf("null event queue\n");*/ SetRect(&rect, x, y, x + width, y + height); close_requested = false; @@ -113,25 +170,44 @@ throwException(env, "Could not create window"); return; } -/* setWindowTitle(env, title); + registerEventHandlers(); + setWindowTitle(env, title); const RGBColor background_color = { 0, 0, 0 }; - status = SetWindowContentColor(win_ref, &background_color); - if (noErr != status) { - DisposeWindow(win_ref); - throwException(env, "Could not alter window background color"); - return; - } - registerEventHandlers();*/ + SetWindowContentColor(win_ref, &background_color); status = TransitionWindow(win_ref, kWindowZoomTransitionEffect, kWindowShowTransitionAction, NULL); if (noErr != status) { DisposeWindow(win_ref); throwException(env, "Could not show window"); return; } -// SelectWindow(win_ref); + SelectWindow(win_ref); InitCursor(); - RunApplicationEventLoop(); - printf("Window creation succeeded\n"); +//QuitApplicationEventLoop(); +DebugPrintAllWindowGroups(); +//RunApplicationEventLoop(); +} + +JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Window_update + (JNIEnv *env, jclass clazz) +{ + EventRef event; + OSStatus err; + int num_events = GetNumEventsInQueue(GetCurrentEventQueue()); + for (int i = 0; i < num_events; i++) { + UInt32 class_type = GetEventClass(event); + UInt32 kind = GetEventKind(event); + UInt32 test = FOUR_CHAR_CODE('eppc'); + EventTime event_time = GetEventTime(event); + //UInt32 test = FOUR_CHAR_CODE('appl'); + printf("recieved event: %x %x %x at %f\n", class_type, kind, test, event_time); + err = ReceiveNextEvent(0, NULL, 0, true, &event); + /* if (kind == kEventClassAppleEvent) + AEProcessAppleEvent(event);*/ + ReleaseEvent(event); + } + //RunCurrentEventLoop(0); +/* if (eventLoopTimedOutErr != RunCurrentEventLoop(0)) + printf("Could not run current event loop\n");*/ } JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Window_nDestroy |
|
From: Elias N. <eli...@us...> - 2003-09-23 11:01:14
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl In directory sc8-pr-cvs1:/tmp/cvs-serv18632/src/java/org/lwjgl/opengl Modified Files: Window.java Log Message: Removed mac os x hack again Index: Window.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/Window.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/Window.java,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- Window.java 17 Sep 2003 10:48:00 -0000 1.9 +++ Window.java 23 Sep 2003 11:00:37 -0000 1.10 @@ -28,15 +28,6 @@ static { System.loadLibrary(Sys.getLibraryName()); - /* - * HACK: This is nescessary to establish the Mac OS X dock icon and - * system menu. Without them, windows will misbehave. - * - * I'm accepting this hack on the assumption that awt is always present - * on an Mac OS X JVM. - */ - if (Display.getPlatform() == Display.PLATFORM_AGL) - java.awt.Toolkit.getDefaultToolkit(); } /** Whether the window is currently created, ie. has a native peer */ |