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();
|
|
|
|
|
2014-02-20 14:39:12 +01:00
|
|
|
void BindTextTarget( ::std::wstring *field );
|
|
|
|
void ReleaseTextTarget();
|
2014-02-20 11:12:53 +01:00
|
|
|
|
|
|
|
protected:
|
2014-02-20 14:39:12 +01:00
|
|
|
::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
|