I believe it is first set by the code in Line 158 of inputtypes.py .