<commit_before>// Copyright 2015-2018 <NAME>. All rights reserved.

#pragma once

#include "input/InputDevice.hpp"

namespace ouzel
{
    namespace input
    {
        class Mouse: public InputDevice
        {
        public:
            enum class Button
            {
                NONE,
                LEFT,           // Left mouse button
                RIGHT,          // Right mouse button
                MIDDLE,         // Middle mouse button (three-button mouse)
                X1,             // Windows 2000/XP: X1 mouse button
                X2,              // Windows 2000/XP: X2 mouse button

                BUTTON_COUNT
            };

            Mouse(): InputDevice(InputDevice::Type::MOUSE) {}
            virtual ~Mouse() {}
        };
    }
}
<commit_msg>Add position attribute to the Mouse<commit_after>// Copyright 2015-2018 <NAME>. All rights reserved.

#pragma once

#include "input/InputDevice.hpp"
#include "math/Vector2.hpp"

namespace ouzel
{
    namespace input
    {
        class Mouse: public InputDevice
        {
        public:
            enum class Button
            {
                NONE,
                LEFT,           // Left mouse button
                RIGHT,          // Right mouse button
                MIDDLE,         // Middle mouse button (three-button mouse)
                X1,             // Windows 2000/XP: X1 mouse button
                X2,              // Windows 2000/XP: X2 mouse button

                BUTTON_COUNT
            };

            Mouse(): InputDevice(InputDevice::Type::MOUSE) {}
            virtual ~Mouse() {}

            inline const Vector2& getPosition() const { return position; }

        private:
            Vector2 position;
        };
    }
}

{'fraction_non_alphanumeric': 0.08448275862068966, 'fraction_numerical': 0.02471264367816092, 'mean_word_length': 1.2263427109974425, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5964434', 'n_tokens_mistral': 477, 'n_tokens_neox': 420, 'n_words': 127}