logo
NoteFly.KeyboardListener.ListeningWindow Class Reference

A ListeningWindow object is a Window that intercepts Keyboard events. More...

+ Inheritance diagram for NoteFly.KeyboardListener.ListeningWindow:

Classes

struct  RAWINPUTDEV
 RAWINPUTDEV struct
 
struct  RAWINPUTHEADER
 RAWINPUTHEADER struct
 
struct  RAWINPUTHKEYBOARD
 
 

Public Member Functions

delegate void KeyDelegate (ushort key, uint msg)
 Key delegate More...
 
 ListeningWindow (KeyDelegate keyHandlerFunction)
 Creating an new listening window instance. More...
 

Protected Member Functions

override void WndProc (ref Message m)
  More...
 

Private Attributes

const int WS_CLIPCHILDREN = 0x02000000
  More...
 
const int WM_INPUT = 0x00FF
  More...
 
const int RIDEV_INPUTSINK = 0x00000100
  More...
 
const int RID_INPUT = 0x10000003
  More...
 
const int RIM_TYPEKEYBOARD = 1
  More...
 
uint m_PrevMessage = 0
 Previous key message. More...
 
ushort m_PrevControlKey = 0
 Previous control key. More...
 
KeyDelegate m_KeyHandler = null
 Key delegate More...
 

Detailed Description

Constructor & Destructor Documentation

NoteFly.KeyboardListener.ListeningWindow.ListeningWindow ( KeyDelegate  keyHandlerFunction)
Parameters
keyHandlerFunction

Member Function Documentation

delegate void NoteFly.KeyboardListener.ListeningWindow.KeyDelegate ( ushort  key,
uint  msg 
)
Parameters
key
msg
override void NoteFly.KeyboardListener.ListeningWindow.WndProc ( ref Message  m)
protected
Parameters
m

Member Data Documentation

KeyDelegate NoteFly.KeyboardListener.ListeningWindow.m_KeyHandler = null
private
ushort NoteFly.KeyboardListener.ListeningWindow.m_PrevControlKey = 0
private
uint NoteFly.KeyboardListener.ListeningWindow.m_PrevMessage = 0
private
const int NoteFly.KeyboardListener.ListeningWindow.RID_INPUT = 0x10000003
private
const int NoteFly.KeyboardListener.ListeningWindow.RIDEV_INPUTSINK = 0x00000100
private
const int NoteFly.KeyboardListener.ListeningWindow.RIM_TYPEKEYBOARD = 1
private
const int NoteFly.KeyboardListener.ListeningWindow.WM_INPUT = 0x00FF
private
const int NoteFly.KeyboardListener.ListeningWindow.WS_CLIPCHILDREN = 0x02000000
private