def _onPygletText(text, emulated=False):
 global useText
 if (not useText):
  return
 keyTime = psychopy.core.getTime()
 if emulated:
  keySource = 'EmulatedKey'
 else:
  keySource = 'KeyPress'
 _keyBuffer.append((text, keyTime))
 logging.data(('%s: %s' % (keySource, text)))

def _onPygletText ( text , emulated = False ) : global useText if ( not useText ) : return keyTime = psychopy . core . getTime ( ) if emulated : keySource = 'EmulatedKey' else : keySource = 'KeyPress' _keyBuffer . append ( ( text , keyTime ) ) logging . data ( ( '%s: %s' % ( keySource , text ) ) )
handler for on_text pyglet events .