1
$\begingroup$

I am making a game in Blender with a first person camera. I used a mouselook script I found online, however when character motion is used for the camera's movement, I have the problem that when the character is looking at the ground and presses the S key, they move up. I am writing a script that will detect when the mouse moves up and down, and another that detects moving left to right.
Where would I start? I was looking at the documentation, and I found bge.types.SCA_PythonMouse.position, but that does not tell you when the mouse is moved. Is there a function that does this?

$\endgroup$
1
  • $\begingroup$ Probably off-topic, but I think you're after mouse events, which Blender does appear to have. $\endgroup$
    – Ixrec
    Commented Mar 1, 2015 at 23:27

1 Answer 1

2
$\begingroup$

no need for a script to get mouse movements use the logic bricks :

enter image description here

$\endgroup$