~ubuntu-branches/ubuntu/vivid/mygui/vivid

« back to all changes in this revision

Viewing changes to Wrappers/MyGUI.Export/ExportInputManager.cpp

  • Committer: Package Import Robot
  • Author(s): Scott Howard, Bret Curtis, Scott Howard
  • Date: 2014-09-18 17:57:48 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20140918175748-dd8va78mvpw1jbes
Tags: 3.2.1-1
[ Bret Curtis ]
* Updated license for majority of files from LGPL to Expat (MIT)

[ Scott Howard ]
* New upstream release
* Updated patch to add build option for system GLEW libraries
* All patches accepted upstream except shared_libraries.patch
* Bumped SONAME due to dropped symbols, updated *.symbols and package
  names
* Updated license of debian/* to Expat with permission of all authors
* Don't install Doxygen autogenerated md5 and map files (thanks
  lintian)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
#include "ExportDefine.h"
3
 
#include "ExportMarshaling.h"
4
 
#include "Generate/MyGUI.Export_MarshalingWidget.h"
5
 
#include "ExportMarshalingType.h"
6
 
#include <MyGUI.h>
7
 
 
8
 
namespace Export
9
 
{
10
 
 
11
 
        MYGUIEXPORT bool MYGUICALL ExportInputManager_GetKeyFocus( )
12
 
        {
13
 
                return MyGUI::InputManager::getInstance().isFocusKey();
14
 
        }
15
 
 
16
 
        MYGUIEXPORT bool MYGUICALL ExportInputManager_GetMouseFocus( )
17
 
        {
18
 
                return MyGUI::InputManager::getInstance().isFocusMouse();
19
 
        }
20
 
 
21
 
        MYGUIEXPORT Convert<MyGUI::Widget*>::Type MYGUICALL ExportInputManager_GetKeyFocusWidget( )
22
 
        {
23
 
                return Convert<MyGUI::Widget*>::To( MyGUI::InputManager::getInstance().getKeyFocusWidget() );
24
 
        }
25
 
 
26
 
        MYGUIEXPORT void MYGUICALL ExportInputManager_SetKeyFocusWidget(
27
 
                MyGUI::Widget* _widget )
28
 
        {
29
 
                MyGUI::InputManager::getInstance().setKeyFocusWidget(
30
 
                        _widget );
31
 
        }
32
 
 
33
 
        MYGUIEXPORT Convert<MyGUI::Widget*>::Type MYGUICALL ExportInputManager_GetMouseFocusWidget( )
34
 
        {
35
 
                return Convert<MyGUI::Widget*>::To( MyGUI::InputManager::getInstance().getMouseFocusWidget() );
36
 
        }
37
 
 
38
 
        MYGUIEXPORT void MYGUICALL ExportInputManager_ResetKeyFocusWidget( )
39
 
        {
40
 
                MyGUI::InputManager::getInstance().resetKeyFocusWidget( );
41
 
        }
42
 
 
43
 
        MYGUIEXPORT void MYGUICALL ExportInputManager_AddWidgetModal(
44
 
                MyGUI::Widget* _widget )
45
 
        {
46
 
                MyGUI::InputManager::getInstance().addWidgetModal(
47
 
                        _widget );
48
 
        }
49
 
 
50
 
        MYGUIEXPORT void MYGUICALL ExportInputManager_RemoveWidgetModal(
51
 
                MyGUI::Widget* _widget )
52
 
        {
53
 
                MyGUI::InputManager::getInstance().removeWidgetModal(
54
 
                        _widget );
55
 
        }
56
 
 
57
 
        MYGUIEXPORT bool MYGUICALL ExportInputManager_InjectKeyPress(
58
 
                Convert<MyGUI::KeyCode>::Type _key,
59
 
                Convert<MyGUI::Char>::Type _char
60
 
        )
61
 
        {
62
 
                return MyGUI::InputManager::getInstance().injectKeyPress(
63
 
                        Convert<MyGUI::KeyCode>::From( _key ),
64
 
                        Convert<MyGUI::Char>::From( _char)
65
 
                        );
66
 
        }
67
 
 
68
 
        MYGUIEXPORT bool MYGUICALL ExportInputManager_InjectKeyRelease(
69
 
                Convert<MyGUI::KeyCode>::Type _key
70
 
        )
71
 
        {
72
 
                return MyGUI::InputManager::getInstance().injectKeyRelease(
73
 
                        Convert<MyGUI::KeyCode>::From( _key )
74
 
                        );
75
 
        }
76
 
 
77
 
        MYGUIEXPORT bool MYGUICALL ExportInputManager_InjectMousePress(
78
 
                int _absX,
79
 
                int _absY,
80
 
                Convert<MyGUI::MouseButton>::Type _button
81
 
        )
82
 
        {
83
 
                return MyGUI::InputManager::getInstance().injectMousePress(
84
 
                        _absX,
85
 
                        _absY,
86
 
                        Convert<MyGUI::MouseButton>::From( _button )
87
 
                        );
88
 
        }
89
 
 
90
 
        MYGUIEXPORT bool MYGUICALL ExportInputManager_InjectMouseRelease(
91
 
                int _absX,
92
 
                int _absY,
93
 
                Convert<MyGUI::MouseButton>::Type _button
94
 
        )
95
 
        {
96
 
                return MyGUI::InputManager::getInstance().injectMouseRelease(
97
 
                        _absX,
98
 
                        _absY,
99
 
                        Convert<MyGUI::MouseButton>::From( _button )
100
 
                        );
101
 
        }
102
 
 
103
 
        MYGUIEXPORT bool MYGUICALL ExportInputManager_InjectMouseMove(
104
 
                int _absX,
105
 
                int _absY,
106
 
                int _absZ
107
 
        )
108
 
        {
109
 
                return MyGUI::InputManager::getInstance().injectMouseMove(
110
 
                        _absX,
111
 
                        _absY,
112
 
                        _absZ );
113
 
        }
114
 
 
115
 
}