Réparation de la vitesse de la souris
This commit is contained in:
parent
6668127f15
commit
3f774d7c2e
@ -386,6 +386,8 @@ void Engine::Render(float elapsedTime) {
|
|||||||
|
|
||||||
if (m_gamestate == GameState::PLAY)
|
if (m_gamestate == GameState::PLAY)
|
||||||
{
|
{
|
||||||
|
CenterMouse(); //Déplacement de centermouse dans l'action de jouer
|
||||||
|
|
||||||
//static float gameTime = elapsedTime;
|
//static float gameTime = elapsedTime;
|
||||||
static float pollTime = 0;
|
static float pollTime = 0;
|
||||||
static float bulletTime = 0;
|
static float bulletTime = 0;
|
||||||
@ -598,7 +600,6 @@ void Engine::MouseMoveEvent(int x, int y) {
|
|||||||
if (x == (Width() / 2) && y == (Height() / 2))
|
if (x == (Width() / 2) && y == (Height() / 2))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
//CenterMouse();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Engine::MousePressEvent(const MOUSE_BUTTON& button, int x, int y) {
|
void Engine::MousePressEvent(const MOUSE_BUTTON& button, int x, int y) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user