Sparkle 0.0.1
Loading...
Searching...
No Matches
spk_event_utils.hpp
1#pragma once
2
3#include <Windows.h>
4#include <optional>
5
6#include "structure/system/device/spk_keyboard.hpp"
7
8#include "structure/system/event/spk_keyboard_event.hpp"
9#include "structure/system/event/spk_mouse_event.hpp"
10#include "structure/system/event/spk_paint_event.hpp"
11#include "structure/system/event/spk_system_event.hpp"
12#include "structure/system/event/spk_update_event.hpp"
13
14namespace spk
15{
16 namespace EventUtils
17 {
18 Keyboard::Key translateVirtualKey(UINT p_vk, bool p_isExtended);
19
20 std::optional<KeyboardEvent> makeKeyboardEvent(const Keyboard &p_keyboard, HWND p_hwnd, UINT p_uMsg, WPARAM p_wParam, LPARAM p_lParam);
21 std::optional<MouseEvent> makeMouseEvent(const Mouse &p_mouse, HWND p_hwnd, UINT p_uMsg, WPARAM p_wParam, LPARAM p_lParam);
22 std::optional<SystemEvent> makeSystemEvent(HWND p_hwnd, UINT p_uMsg, WPARAM p_wParam, LPARAM p_lParam);
23 }
24}
Key
Enumeration of supported keyboard keys using platform scan codes.
Definition spk_keyboard.hpp:21