IMPROVED: fixed codestyle to match java/js
IMPROVED: handling mouse position when pointer is locked