mrdoob/three.js — pull request #3724 by WestLangley (2013-08-06 19:33:50+00:00)
Title: Added PointerLockControls.getDirection()

... which returns the direction in which the camera is looking.