You might try NPAPI, it is designed to let you draw on a surface and get
events

Your plugin runs in a separate process, and is scriptable by javascript



best

bill





On Wed, Jul 27, 2011 at 8:02 AM, Guido Sales Calvano <guidocalv...@yahoo.com
> wrote:

> Dear community,
>
> I'm building a project I've been thinking about for 14 years now. Finally
> doing
> it. But I've hit a stumbling block... So I need help...
>
> I'm trying to wrap Ogre3D a graphics engine in a javascript api using v8,
> and
> then load that as a module in node js, a javascript framework focussed on
> web
> communication tasks such as running a server. Node js can load other
> javascript
> modules that are bound to C++ code as dynamic libraries.
>
> Ogre3D however, uses a cocoa window to render on, and obviously I want user
> input. But if I start ogre in a dynamic library ui events register
> incorrectly.
> Only clicks and drag operations are detected, but no key input or mouse
> move
> events. This only happens when I load the library dynamically. I know this
> because I created a simple program that just loaded my dynamic lib to test
> the
> assumption. If I don't load the lib dynamically, but link directly
> everything
> works fine.
>
> The answer is probably quite simple, once you know where to look, but I
> don't
> know where to look. So please help.
>
> Kind regards (:
>
> Guido
> _______________________________________________
>
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> http://lists.apple.com/mailman/options/cocoa-dev/billappleton%40dreamfactory.com
>
> This email sent to billapple...@dreamfactory.com
>
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to