Skip to content

Commit

Permalink
Conversion corrections. Avoids warnings in Visual Studio.
Browse files Browse the repository at this point in the history
  • Loading branch information
RicardoEPRodrigues committed Nov 2, 2017
1 parent f4a2293 commit 9a32f6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Engine/Input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ namespace ThreeEngine {
}

void Input::MouseMove(int x, int y) {
mouseScreenLocation.X = x;
mouseScreenLocation.Y = y;
mouseScreenLocation.X = (number) x;
mouseScreenLocation.Y = (number) y;
}

const Vector2& Input::GetMouseScreenLocation() const {
Expand Down
4 changes: 2 additions & 2 deletions src/Executable/Quaternion/SphereCameraController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ namespace ThreeEngine {
Vector2 newMouseLoc = mouse;

if (mouseXUpdate) {
newMouseLoc.X = (int) engine->config["window"]["x"] / 2;
newMouseLoc.X = (number) engine->config["window"]["x"] / 2;
previousMouseLocation.X = newMouseLoc.X - delta.X;
}

if (mouseYUpdate) {
newMouseLoc.Y = (int) engine->config["window"]["y"] / 2;
newMouseLoc.Y = (number) engine->config["window"]["y"] / 2;
previousMouseLocation.Y = newMouseLoc.Y - delta.Y;
}

Expand Down

0 comments on commit 9a32f6e

Please sign in to comment.