Guiliani  Version 2.6 revision 7293 (documentation build 12)
GUIInputWindows.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 _GUIINPUTWINDOWS_H_
11#define _GUIINPUTWINDOWS_H_
12
13#include "eC_Types.h"
14#include "GUIInputMedia.h"
16#include <windows.h>
17
18class CGUIEvent;
19
20// Definition similar to windowsx.h GET_X_LPARAM(lp) used for Mousewheel
21// include "windowsx.h" not usable because _WIN32_WINNT is not defined and therefore the function
22// will not be declared
23
26{
27public:
32 static void CreateInstance(
33 const HWND &hWnd,
34 const eC_Bool& bEmulateTouchScreen = false);
35
36 virtual void StopIdle();
37
41 void SetEmulateTouchScreen(const eC_Bool& bEmulateTouchScreen);
42
46 eC_Bool GetEmulateTouchScreen() const;
47
48protected:
53
59 const HWND &hWnd,
60 const eC_Bool& bEmulateTouchScreen = false);
61
65
66 virtual void PollEvent();
67
68protected:
70 HWND m_hWnd;
71
74
77
80
83
86
87private:
91 CGUIInputWindows(const CGUIInputWindows& kSource);
92
96 CGUIInputWindows& operator=(const CGUIInputWindows& kSource);
97
104 GUIKeyIdentifier_t GetKeyID(UINT virtualKeyCode, eC_UInt uiModifiers);
105
110 eC_Int GetXPosition(const LPARAM& lParam);
111
116 eC_Int GetYPosition(const LPARAM& lParam);
117};
118#endif
GUIKeyIdentifier_t
Platform independent key identifiers.
Definition: GUIEventTypeResource.h:207
Base class for Guiliani Events.
Definition: GUIEvent.h:26
Definition: GUIInputMedia.h:30
Standard input Wrapper for systems running a windows OS.
Definition: GUIInputWindows.h:26
static void CreateInstance(const HWND &hWnd, const eC_Bool &bEmulateTouchScreen=false)
eC_Bool GetEmulateTouchScreen() const
CGUIInputWindows(const HWND &hWnd, const eC_Bool &bEmulateTouchScreen=false)
virtual void PollEvent()
eC_Bool m_bRightButtonPressed
Indicate that the right mouse button is currently pressed.
Definition: GUIInputWindows.h:82
virtual void StopIdle()
virtual CGUIEvent * CreateGuilianiEventFromWindowsMessage(MSG &kMsg)
void SetEmulateTouchScreen(const eC_Bool &bEmulateTouchScreen)
eC_Bool m_bLeftButtonPressed
Indicate that the left mouse button is currently pressed.
Definition: GUIInputWindows.h:79
int m_iLastX
last mouse-position x
Definition: GUIInputWindows.h:73
eC_Bool m_bEmulateTouchScreen
if this is true the moving of mouse will only create ET_MOUSEMOVE while a mouse-button is pressed
Definition: GUIInputWindows.h:85
int m_iLastY
last mouse-position y
Definition: GUIInputWindows.h:76
HWND m_hWnd
Handle to associated window.
Definition: GUIInputWindows.h:70