A while ago I got pushevent to work with sdljava. It took just a couple
of minor adjustments to the code, you might look at how swig handles the
JNI call. Most of the code for pushevent is already there in sdljava,
it's just commented.
Wouter
p.s. Although my hack for pushevent/userevent did work, It's too much of
a hack too add it to cvs.
Ivan Z. Ganza wrote:
> It is strange that SDL_PushEvent isn't working for you. You might want
> to search on the sdl mailing list for "Using SDL_PushEvent". There mus=
t
> be some reason it is returning -1. It might require debugging the SDL =
C
> code to see why it is returning -1.
>=20
> I'll see if I can find anything out on my end.
>=20
> -Ivan/
>=20
> Christian Bourque wrote:
>=20
>=20
>>>I think the following (unimplemented) method from SDLEvent should do t=
he
>>>trick.=3D20
>>>
>>> int SDL_PushEvent(SDL_Event *event);
>>>
>>> =20
>>>
>>
>>Hi Ivan! Thanks for your reply!
>>
>>I've already tried SDL_PushEvent inside my native lib (using JNI),
>>basically I catch mousePressed events inside the canvas and then call
>>a native function which will call SDL_PushEvent() but it always
>>returns -1...
>>
>>Regards
>>
>>Christian
>>
>>
>>-------------------------------------------------------
>>SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
>=20
>>from IBM. Find simple to follow Roadmaps, straightforward articles,
>=20
>>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
>>
>=20
>=20
>=20
>=20
> -------------------------------------------------------
> 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=3Dclick
> _______________________________________________
> sdljava-users mailing list
> sdl...@li...
> https://lists.sourceforge.net/lists/listinfo/sdljava-users
|