[HOpenGL] Bug in perWindowKeyRepeat

Yann Morvan morvany at cs.tcd.ie
Mon Dec 13 07:24:13 EST 2004


Hello,
in DeviceControl.hs of the GLUT library,
the marshalling of PerWindowKeyRepeat is doing the opposite of what it
should do, the functions should read:

marshalPerWindowKeyRepeat :: PerWindowKeyRepeat -> CInt
marshalPerWindowKeyRepeat PerWindowKeyRepeatOff = 1
marshalPerWindowKeyRepeat PerWindowKeyRepeatOn  = 0

unmarshalPerWindowKeyRepeat :: CInt -> PerWindowKeyRepeat
unmarshalPerWindowKeyRepeat _ = PerWindowKeyRepeatOff
unmarshalPerWindowKeyRepeat 0 = PerWindowKeyRepeatOn

this is because the actual function being called with this parameter is
glutIgnoreKeyRepeat, which disables key repeating if given a non zero
value.

	Yann




More information about the HOpenGL mailing list