<commit_before>#ifndef SFML_INPUT_HANDLER_HPP
#define SFML_INPUT_HANDLER_HPP
#include <unordered_map>
#include <SFML/Window.hpp>
#include "hash_pair.hpp"

class InputHandler
{
public:
	struct MousePosition
	{
		MousePosition():
		x(0),y(0){}
		int x;
		int y;
	};
	InputHandler(){}
	~InputHandler(){}

	void update()
	{
		#if !(INPUT_DISABLE_KEYBOARD)
		keyUpdate();
		#endif
		#if !(INPUT_DISABLE_MOUSE)
		mouseUpdate();
		#endif
		#if !(INPUT_DISABLE_JOYSTICK)
		joystickUpdate();
		#endif
	}

	void handleEvent(const sf::Event& event)
	{
		#if !(INPUT_DISABLE_KEYBOARD)
		if (keyEvent(event)) return;
		#endif
		#if !(INPUT_DISABLE_MOUSE)
		if (mouseEvent(event)) return;
		#endif
		#if !(INPUT_DISABLE_JOYSTICK)
		if (joystickEvent(event)) return;
		#endif
	}

#if !(INPUT_DISABLE_KEYBOARD)<commit_msg>Fixed bug with mouse position on start<commit_after>#ifndef SFML_INPUT_HANDLER_HPP
#define SFML_INPUT_HANDLER_HPP
#include <unordered_map>
#include <SFML/Window.hpp>
#include "hash_pair.hpp"

class InputHandler
{
public:
	struct MousePosition
	{
		MousePosition():
		x(0),y(0){}
		int x;
		int y;
	};
	InputHandler()
	{
		auto p = sf::Mouse::getPosition();
		p_current_mouse_info.x = p.x;
		p_current_mouse_info.y = p.y;
		p_previous_mouse_info = p_current_mouse_info;
	}
	~InputHandler(){}

	void update()
	{
		#if !(INPUT_DISABLE_KEYBOARD)
		keyUpdate();
		#endif
		#if !(INPUT_DISABLE_MOUSE)
		mouseUpdate();
		#endif
		#if !(INPUT_DISABLE_JOYSTICK)
		joystickUpdate();
		#endif
	}

	void handleEvent(const sf::Event& event)
	{
		#if !(INPUT_DISABLE_KEYBOARD)
		if (keyEvent(event)) return;
		#endif
		#if !(INPUT_DISABLE_MOUSE)
		if (mouseEvent(event)) return;
		#endif
		#if !(INPUT_DISABLE_JOYSTICK)
		if (joystickEvent(event)) return;
		#endif
	}

#if !(INPUT_DISABLE_KEYBOARD)
{'fraction_non_alphanumeric': 0.13519553072625698, 'fraction_numerical': 0.0022346368715083797, 'mean_word_length': 5.091836734693878, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1252949', 'n_tokens_mistral': 770, 'n_tokens_neox': 740, 'n_words': 136}