Anders Backman wrote:
Guess if I was happy to find the setAutoRepeat(bool) method in
Producer/KeyboardMouse
Equally sad when I spotted the implementation: setAutoRepeat(bool flag) {}
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...

  Under Windows, both WM_CHAR and WM_KEYDOWN:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/keyboardinput/keyboardinputreference/keyboardinputmessages/wm_char.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/keyboardinput/keyboardinputreference/keyboardinputmessages/wm_char.asp

offer a value masked into bits 0-15 of the lParam of the message event. I expect the Producer event handling could check this value and the state of an internal AutoRepeat variable (controlled by setAutoRepeat()) and discard repeated events.


  I don't know anything special about Producer, this is just how I see it.

/Anders

--
Chris 'Xenon' Hanson aka Eric Hammil | http://www.3DNature.com/ eric at logrus
 "I set the wheels in motion, turn up all the machines, activate the programs,
  and run behind the scenes. I set the clouds in motion, turn up light and 
sound,
  activate the window, and watch the world go 'round." -Prime Mover, Rush.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to