Hey I just ran into this very thing (although I didn't even think to look if OSG already was handling it).  I used a std::set and kept the keys that were pressed until they weren't pressed anymore.  That was pretty easy.

On 11/13/06, Anders Backman <[EMAIL PROTECTED]> wrote:
Just to check.

In the post:
http://openscenegraph.org/archiver/osg-users/2003-June/0517.html

I sort of mentioned that a way of turning of keyrepeat under windows
could come in handy.

Guess if I was happy to find the setAutoRepeat(bool) method in
Producer/KeyboardMouse

Equally sad when I spotted the implementation: setAutoRepeat(bool flag) {}

:-)

Now, is this something that deserves more attention?
I mean there is a vad way of solving it outside producer/osgProducer
by creating a std::map<> and store all the keyboard events to see if
they have changed or not.
But I dont want to implement this just to find that a better solution
is already in the pipeline...

So whats the status?

/Anders


--


________________________________________________________________
Anders Backman               Email:    [EMAIL PROTECTED]
HPC2N/VRlab                  Phone:    +46 (0)90-786 9936
Umea university              Cellular: +46 (0)70-392 64 67
S-901 87 UMEA SWEDEN         Fax:      +46 90-786 6126
                               http://www.cs.umu.se/~andersb
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to