💿🐜 Antkeeper source code https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
2.1 KiB

/*
* Copyright (C) 2023 Christopher J. Howard
*
* This file is part of Antkeeper source code.
*
* Antkeeper source code is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Antkeeper source code is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Antkeeper source code. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef ANTKEEPER_INPUT_MAPPING_EVENTS_HPP
#define ANTKEEPER_INPUT_MAPPING_EVENTS_HPP
#include "input/mapping.hpp"
namespace input {
/**
* Event generated when a gamepad axis mapping has been generated.
*/
struct gamepad_axis_mapped_event
{
/// Gamepad axis mapping that was generated.
gamepad_axis_mapping mapping;
};
/**
* Event generated when a gamepad button mapping has been generated.
*/
struct gamepad_button_mapped_event
{
/// Gamepad button mapping that was generated.
gamepad_button_mapping mapping;
};
/**
* Event generated when a key mapping has been generated.
*/
struct key_mapped_event
{
/// Key mapping that was generated.
key_mapping mapping;
};
/**
* Event generated when a mouse button mapping has been generated.
*/
struct mouse_button_mapped_event
{
/// Mouse button mapping that was generated.
mouse_button_mapping mapping;
};
/**
* Event generated when a mouse motion mapping has been generated.
*/
struct mouse_motion_mapped_event
{
/// Mouse motion mapping that was generated.
mouse_motion_mapping mapping;
};
/**
* Event generated when a mouse scroll mapping has been generated.
*/
struct mouse_scroll_mapped_event
{
/// Mouse scroll mapping that was generated.
mouse_scroll_mapping mapping;
};
} // namespace input
#endif // ANTKEEPER_INPUT_MAPPING_EVENTS_HPP