Skip to content
This repository has been archived by the owner on Jun 19, 2021. It is now read-only.

Camera and EventHandler Fix for MouseMovement #42

Merged
merged 8 commits into from
Jul 22, 2016

Conversation

FlorianJanosch
Copy link
Contributor

fixed MouseMovement for left and right (it was the other way around)

@FlorianJanosch FlorianJanosch changed the title Camera and Event Handler (Grabbing Cursor) Camera and EventHandler Fix for MouseMovement Jul 22, 2016
@jonas-schievink
Copy link
Contributor

A few warnings need to be fixed

Vector3.normalize() *returns* a vector, so the new value has to be assigned to the old vector
…ound

Mouse grabbing now works by calculating the difference of movement and setting the cursor back to the middle of the inner window

improve controls by using booleans for KeyState 'Pressed' and 'Release' and having ghost.update() function in the main game loop

Mouse now only moves the direction of camera when the windows is clicked once (cursor is then hidden)
after clicking again, the cursor is visible again and can move freely without affecting the game
@LukasKalbertodt LukasKalbertodt merged commit d1af6d1 into OsnaCS:master Jul 22, 2016
This was referenced Jul 22, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants