Re: [sdljava-users] AWT Native Interface & SDL
Status: Beta
Brought to you by:
ivan_ganza
From: Ivan Z. G. <iva...@ya...> - 2005-07-15 19:35:38
|
Greetings Christian, I like the JQEMU project. It seems right now there is no way to pass events to the native window. I think the following (unimplemented) method from SDLEvent should do the trick.=20 int SDL_PushEvent(SDL_Event *event); and in sdljava world: public static int pushEvent(SDLEvent event) throws SDLException; I'm not sure how hard it would be to do this properly. Seems like a very= good feature to have though so it will be added. -Ivan/ Christian Bourque wrote: >Hi! > >I'm the author of JQEMU (http://sourceforge.net/projects/jqemu) which >is a Java/Swing graphical frontend for QEMU (an x86 emulator) and I'm >trying to embed the native application window (X11/SDL) inside a Java >AWT Canvas using JNI and the AWT Native Interface. Everything works grea= t >except for mouse/keyboard events which seems to be ignored by the >native window. > >Is there a way to catch keyboard and mouse events inside the canvas >and pass them to the native window? > >Thanks > >Christian > > >------------------------------------------------------- >SF.Net email is sponsored by: Discover Easy Linux Migration Strategies >from IBM. Find simple to follow Roadmaps, straightforward articles, >informative Webcasts and more! Get everything you need to get up to >speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id=16492&op=CCk >_______________________________________________ >sdljava-users mailing list >sdl...@li... >https://lists.sourceforge.net/lists/listinfo/sdljava-users > =20 > |