Event problems

I'm getting the error: C4700; uninitialized local variable 'event' used

I have searched online for the error but cannot find anything related to events.

Anyone know what I may be missing in my code?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <SFML/Window.hpp>
#include <Windows.h>
#include <iostream>

using namespace std;

int main()
{
	sf::Window window(sf::VideoMode(800, 600), "MouseWheelTest");

	sf::Event event;

	if (event.type == sf::Event::MouseWheelMoved)
	{
		cout << "wheel movement: " << event.mouseWheel.delta << std::endl;
		cout << "mouse x: " << event.mouseWheel.x << std::endl;
		cout << "mouse y: " << event.mouseWheel.y << std::endl;
	}

	return 0;
}
Thanks Kevin. I literally found it right after I posted this. It's the little things that are killin me.
Topic archived. No new replies allowed.