Menu

#18 every character is posted twice in the glut renderer

open
nobody
gl renderer (5)
5
2004-11-03
2004-11-03
Anonymous
No

i've changed the onKeyDown method of the glutrenderer
to the following:

def onKeyDown(self,key,x,y):
# if ord(key) < 128:
#
getDesktop().postUserEvent(pyui.locals.CHAR, 0, 0, key,
self.getModifiers() )

getDesktop().postUserEvent(pyui.locals.KEYDOWN,
0, 0, ord(key), self.getModifiers() )

(ok, ive just uncommented two lines ;) )

now it works

Discussion


Log in to post a comment.