Problems with MouseInputComponent

2 views
Skip to first unread message

Rodrigo Moraes

unread,
Dec 19, 2009, 7:08:46 AM12/19/09
to The Render Engine
I can't get MouseInputComponent to work (using the development version
pre-dom-return). I get:

Error: MouseInputComponent is not defined
Source File: http://localhost:8080/static/js/mouseinput_test.js
Line: 15

But in Chrome I sometimes get:

Uncaught TypeError: Cannot read property 'position' of undefined

Here's the dummy code that generates the errors above:

http://paste.pocoo.org/show/158046/

What am I doing wrong, or how is it supposed to work?

thank you.
-- rodrigo

bfat...@gmail.com

unread,
Dec 20, 2009, 6:01:54 PM12/20/09
to The Render Engine
There were some serious issues with the MouseInputComponent which have
now been resolved. I've been meaning to write simple tests for each
of the objects in the engine so I started with the
MouseInputComponent. In the /test folder you'll find a simple app
which will evolve. Currently there's only the one test. You can run
it by navigating to:

http://renderengine.googlecode.com/svn/trunk/test/manual/index.html?test=components/mouseinput

It also exposed some issues of the dependency checker (the Linker).
Linker wasn't properly validating constructors for objects (which has
now been fixed). It may cause some issues loading your game, but
hopefully not. I've verified it with each of the demo apps to make
sure they all still run. If you have any issues, let me know.

It appears I checked in some bad code for the Sprite Editor and
something is amiss in the Font Editor. <sigh>

- Brett

Rodrigo Moraes

unread,
Dec 21, 2009, 5:31:37 AM12/21/09
to the-rend...@googlegroups.com
On Sun, Dec 20, 2009 at 9:01 PM, bfattori wrote:
> There were some serious issues with the MouseInputComponent which have
> now been resolved.

Thank you. I got it working now.

-- rodrigo

Reply all
Reply to author
Forward
0 new messages