Here's another illustration of what the patch does. The first part
is what the added code in KeyPress does, the second part is what
the code in KeyRelease does. 



press '3' (with autorepetition), press shift, release '3', release 'shift':

  key: 51, shift: 0, pressed: 1
  key: 51, shift: 0, pressed: 1
  key: 51, shift: 0, pressed: 1
  key: 51, shift: 1, pressed: 0     <<< this release event *added* by the
  key: 35, shift: 1, pressed: 1         patch, otherwise 51=='3' would never
  key: 35, shift: 1, pressed: 1         be released
  key: 35, shift: 1, pressed: 1
  key: 35, shift: 1, pressed: 0




like above, but typing the sequence faster:

  key: 51, shift: 0, pressed: 1
  key: 51, shift: 1, pressed: 0     <<< this changed from 35 ('#') to 51 ('3')
                                        by the patch, otherwise 51 would never
                                        be released, but 35 (which wasn't even
                                        reported pressed before)

m.
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to