Danbias/Code/Misc/Input/Include/ApplicationKeyboard.h

37 lines
717 B
C
Raw Normal View History

2014-02-20 11:12:53 +01:00
/////////////////////////////////////////////////////////////////////
// Created by [Dan Andersson] [2014]
/////////////////////////////////////////////////////////////////////
#ifndef INPUT_APPLICATION_KEBOARD_H
#define INPUT_APPLICATION_KEBOARD_H
#include "InputObject.h"
2014-02-20 13:27:21 +01:00
#include <string>
2014-02-20 11:12:53 +01:00
namespace Input
{
2014-02-20 13:27:21 +01:00
class ApplicationKeyboard : public InputObject
2014-02-20 11:12:53 +01:00
{
public:
2014-02-20 16:15:47 +01:00
virtual ~ApplicationKeyboard();
2014-02-20 13:27:21 +01:00
bool IsActive() const;
void Activate();
void Deactivate();
void BindTextTarget( ::std::wstring *field );
void ReleaseTextTarget();
2014-02-20 11:12:53 +01:00
protected:
::std::wstring *textTarget;
::std::wstring::size_type writePos;
2014-02-20 13:27:21 +01:00
ApplicationKeyboard();
private:
bool active;
2014-02-20 11:12:53 +01:00
};
}
#endif // !INPUT_KEBOARD_H