57d48d4493
Here is the description: As the summary says, this patch adds a new event to both SCA_PythonKeyboard and SCA_PythonMouse. This property is similar to the events property that both have, but it only returns events which are not KX_NO_INPUTSTATUS. This moves the "no input" check from Python to C, which gave my input handling code a 2x speed up. Python sucks (performance-wise) with iterating lists and SCA_PythonKeyboard has close to 200 events (I think something like 177, but I don't know for sure). |
||
---|---|---|
.. | ||
bge.constraints.rst | ||
bge.events.rst | ||
bge.logic.rst | ||
bge.render.rst | ||
bge.texture.rst | ||
bge.types.rst | ||
bgl.rst | ||
change_log.rst | ||
gpu.rst | ||
info_best_practice.rst | ||
info_gotcha.rst | ||
info_overview.rst | ||
info_quickstart.rst | ||
info_tips_and_tricks.rst |