ManagedServices::Keyboard Class Reference


Detailed Description

Convenient access to Keyboard and Mouse utility functions.

List of all members.

Static Public Member Functions

static bool  IsKeyDown (System::Windows::Forms::Keys selectedKey)
  Is the given key currently pressed down?
static bool  IsAnyKeyOrMouseButtonDown ()
  Is any key or mouse button down?

Member Function Documentation

static bool ManagedServices::Keyboard::IsKeyDown ( System::Windows::Forms::Keys  selectedKey ) [static]

Is the given key currently pressed down?

Parameters:
selectedKey Enum code for the key to query.
Returns:
true if the key is down, false otherwise.
bool ManagedServices::Keyboard::IsAnyKeyOrMouseButtonDown ( ) [static]

Is any key or mouse button down?

Keys at and above VK_OEM_RESET are used by Windows Input Method Editor for language support. These are often marked as down even though the user is not holding any keys. This query stops testing at this limit and does not consider keys with code VK_OEM_RESET and above.

Returns:
true if a key or a mouse button is down, false if all queried keys and mouse buttons are up.

ManagedServices::Keyboard ManagedServices::Keyboard ManagedServices::Keyboard ManagedServices::Keyboard ManagedServices::Keyboard ManagedServices::Keyboard ManagedServices::Keyboard ManagedServices::Keyboard ManagedServices::Keyboard ManagedServices::Keyboard
ManagedServices::Keyboard ManagedServices::Keyboard ManagedServices::Keyboard ManagedServices::Keyboard ManagedServices::Keyboard ManagedServices::Keyboard ManagedServices::Keyboard ManagedServices::Keyboard ManagedServices::Keyboard ManagedServices::Keyboard