SO3Engine
include
External
hikari
impl
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
27
namespace
Hikari
{
28
namespace
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
;
38
class
KeyboardHook
39
{
40
public
:
41
HHOOK
getMsgHook
;
42
static
KeyboardHook
*
instance
;
43
44
KeyboardHook
();
45
~KeyboardHook
();
46
47
void
handleHook
(
UINT
msg, HWND hwnd, WPARAM wParam, LPARAM lParam);
48
49
};
50
51
}
52
}
53
54
#endif
UINT
unsigned int UINT
Definition
SO3Android.h:58
Hikari::Impl::KeyboardHook
Definition
KeyboardHook.h:39
Hikari::Impl::KeyboardHook::~KeyboardHook
~KeyboardHook()
Definition
KeyboardHook.cpp:54
Hikari::Impl::KeyboardHook::instance
static KeyboardHook * instance
Definition
KeyboardHook.h:42
Hikari::Impl::KeyboardHook::KeyboardHook
KeyboardHook()
Definition
KeyboardHook.cpp:45
Hikari::Impl::KeyboardHook::handleHook
void handleHook(UINT msg, HWND hwnd, WPARAM wParam, LPARAM lParam)
Definition
KeyboardHook.cpp:61
Hikari::Impl::KeyboardHook::getMsgHook
HHOOK getMsgHook
Definition
KeyboardHook.h:41
Hikari::Impl::PKBDLLHOOKSTRUCT
struct Hikari::Impl::KBDLLHOOKSTRUCT * PKBDLLHOOKSTRUCT
Hikari
Definition
Delegate.h:33
Hikari::Impl::KBDLLHOOKSTRUCT::flags
DWORD flags
Definition
KeyboardHook.h:34
Hikari::Impl::KBDLLHOOKSTRUCT::time
DWORD time
Definition
KeyboardHook.h:35
Hikari::Impl::KBDLLHOOKSTRUCT::scanCode
DWORD scanCode
Definition
KeyboardHook.h:33
Hikari::Impl::KBDLLHOOKSTRUCT::dwExtraInfo
ULONG_PTR dwExtraInfo
Definition
KeyboardHook.h:36
Hikari::Impl::KBDLLHOOKSTRUCT::vkCode
DWORD vkCode
Definition
KeyboardHook.h:32
Generated by
1.9.8