Guiliani  Version 2.6 revision 7293 (documentation build 12)
GUIInputDirectFb.h
1/*
2* Copyright (C) TES Electronic Solutions GmbH,
3* All Rights Reserved.
4* Contact: info@guiliani.de
5*
6* This file is part of the Guiliani HMI framework
7* for the development of graphical user interfaces on embedded systems.
8*/
9
10#ifndef GUIINPUTDIRECTFB__H_
11#define GUIINPUTDIRECTFB__H_
12
13#include "directfb.h"
14#include "GUIInputMedia.h"
15#include "GUIEvent.h"
16
18
24// @guiliani_doxygen limitations CGUIInputDirectFb
30// @endguiliani_doxygen
32{
33public:
37 inline static void CreateInstance()
38 {
39 if (!CGUIComponentManager::GetInstance().HasInputMedia())
41 }
42
43 virtual void PollEvent();
44
45 virtual void StopIdle();
46
47private:
50
52 virtual ~CGUIInputDirectFb();
53
57
60 CGUIInputDirectFb& operator=(const CGUIInputDirectFb& kSource);
61
64 void RegisterEventBuffer(IDirectFBInputDevice* pkDevice);
65
70 GUIKeyIdentifier_t RecodeKeyId(const DFBInputEvent &kEvent, eC_Unicode &cKey);
71
72private:
74 IDirectFBInputDevice* m_pkKeyboard;
76 IDirectFBInputDevice* m_pkMouse;
78 IDirectFBEventBuffer *m_pkEventBuffer;
79
81 eC_Int m_iMouseX;
83 eC_Int m_iMouseY;
85 eC_Bool m_bMouseLeftPressed;
87 eC_Bool m_bMouseRightPressed;
89 eC_UInt m_uiModifier;
91 CGUIEvent* m_pkAdditionalEvent;
92};
93
94#endif
GUIKeyIdentifier_t
Platform independent key identifiers.
Definition: GUIEventTypeResource.h:207
void SetInputMedia(CGUIInputMedia *pkInputMedia)
static CGUIComponentManager & GetInstance()
Base class for Guiliani Events.
Definition: GUIEvent.h:26
This is the Input-Wrapper class for directFB.
Definition: GUIInputDirectFb.h:32
static void CreateInstance()
Definition: GUIInputDirectFb.h:37
virtual void StopIdle()
virtual void PollEvent()
Definition: GUIInputMedia.h:30