Guiliani  Version 2.5 revision 7293 (documentation build 13)
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 inline CGUIEvent* GetEvent(eC_UInt uiIdleTime);
44
45 virtual void StopIdle();
46
47private:
49 IDirectFBInputDevice* m_pkKeyboard;
51 IDirectFBInputDevice* m_pkMouse;
53 IDirectFBEventBuffer *m_pkEventBuffer;
54
56 eC_Int m_iMouseX;
58 eC_Int m_iMouseY;
60 eC_Bool m_bMouseLeftPressed;
62 eC_Bool m_bMouseRightPressed;
64 eC_UInt m_uiModifier;
66 CGUIEvent* m_pAdditionalEvent;
67
68
71
73 virtual ~CGUIInputDirectFb();
74
75
79
82 CGUIInputDirectFb& operator=(const CGUIInputDirectFb& kSource);
83
86 void RegisterEventBuffer(IDirectFBInputDevice* pkDevice);
87
92 GUIKeyIdentifier_t RecodeKeyId(const DFBInputEvent &kEvent, eC_Unicode &cKey);
93};
94
95#endif
GUIKeyIdentifier_t
Platform independent key identifiers.
Definition: GUIEventTypeResource.h:205
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()
CGUIEvent * GetEvent(eC_UInt uiIdleTime)
Definition: GUIInputMedia.h:29