1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
Halofreak1990 8f089dc2ab Added the current XFX directory tree.
WARNING!!! This revision cannot compile correctly. It is updated to reflect the many changes within the XFX project.
2010-12-04 16:14:34 +00:00

42 lines
948 B
C++

/********************************************************
* Keyboard.h *
* *
* XFX Keyboard definition file *
* Copyright © XFX Team. All Rights Reserved *
********************************************************/
#ifndef _XFX_INPUT_KEYBOARD_
#define _XFX_INPUT_KEYBOARD_
#include "Enums.h"
#include "Keys.h"
namespace XFX
{
namespace Input
{
/// <summary>
/// Represents a state of keystrokes recorded by a keyboard input device.
/// </summary>
struct KeyboardState
{
KeyboardState();
KeyboardState(unsigned char keys[]);
unsigned char* GetPressedKeys();
bool IsKeyDown(unsigned char key);
bool IsKeyUp(unsigned char key);
};
/// <summary>
/// Allows retrieval of keystrokes from a keyboard input device.
/// </summary>
class Keyboard
{
public:
static KeyboardState GetState();
};
}
}
#endif //_XFX_INPUT_KEYBOARD_