SO3Engine
KeyboardHook.h
Go to the documentation of this file.
1/*
2 This file is part of Hikari, a library that allows developers
3 to use Flash in their Ogre3D applications.
4
5 Copyright (C) 2008 Adam J. Simmons
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or (at your option) any later version.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public
18 License along with this library; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20*/
21
22#ifndef __KeyboardHook_H__
23#define __KeyboardHook_H__
24
25#include <windows.h>
26
27namespace Hikari {
28namespace Impl {
29
30
31 typedef struct {
32 DWORD vkCode;
33 DWORD scanCode;
34 DWORD flags;
35 DWORD time;
36 ULONG_PTR dwExtraInfo;
37} KBDLLHOOKSTRUCT, *PKBDLLHOOKSTRUCT;
39{
40public:
43
46
47 void handleHook(UINT msg, HWND hwnd, WPARAM wParam, LPARAM lParam);
48
49};
50
51}
52}
53
54#endif
unsigned int UINT
Definition SO3Android.h:58
static KeyboardHook * instance
void handleHook(UINT msg, HWND hwnd, WPARAM wParam, LPARAM lParam)
struct Hikari::Impl::KBDLLHOOKSTRUCT * PKBDLLHOOKSTRUCT