Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/weapons/src/ceguilua/ceguilua-0.5.0/package/InputEvent.pkg @ 2915

Last change on this file since 2915 was 2710, checked in by rgrieder, 16 years ago

Merged buildsystem3 containing buildsystem2 containing Adi's buildsystem branch back to the trunk.
Please update the media directory if you were not using buildsystem3 before.

  • Property svn:eol-style set to native
File size: 2.7 KB
Line 
1/***********************************************************************
2        EventArgs
3***********************************************************************/
4class EventArgs
5{
6        bool handled;
7
8        EventArgs();
9};
10
11
12
13/***********************************************************************
14        MouseCursorEventArgs
15***********************************************************************/
16class MouseCursorEventArgs : public EventArgs
17{
18        MouseCursor* mouseCursor;
19        const Image* image;
20
21        MouseCursorEventArgs(MouseCursor* cursor);
22};
23
24
25
26/***********************************************************************
27        WindowEventArgs
28***********************************************************************/
29class WindowEventArgs : public EventArgs
30{
31        Window* window;
32
33        WindowEventArgs(Window* wnd);
34};
35
36
37
38/***********************************************************************
39        ActivationEventArgs
40***********************************************************************/
41class ActivationEventArgs : public WindowEventArgs
42{
43        Window* otherWindow;
44
45        ActivationEventArgs(Window* wnd);
46};
47
48
49
50/***********************************************************************
51        HeaderSequenceEventArgs
52***********************************************************************/
53class HeaderSequenceEventArgs : public WindowEventArgs
54{
55        // remove 'd_' member variable prefix
56        unsigned int d_oldIdx @ oldIdx;
57        unsigned int d_newIdx @ newIdx;
58
59        HeaderSequenceEventArgs(Window* wnd, unsigned int old_index, unsigned int new_index);
60};
61
62
63
64/***********************************************************************
65        MouseButton
66***********************************************************************/
67enum MouseButton
68{
69        LeftButton,
70        RightButton,
71        MiddleButton,
72        X1Button,
73        X2Button,
74        MouseButtonCount,
75        NoButton
76};
77
78
79
80/***********************************************************************
81        MouseEventArgs
82***********************************************************************/
83class MouseEventArgs : public WindowEventArgs
84{
85        Vector2 position;
86        Vector2 moveDelta;
87        MouseButton button;
88        unsigned int sysKeys;
89        float wheelChange;
90
91        MouseEventArgs(Window* wnd);
92};
93
94
95
96/***********************************************************************
97        KeyEventArgs
98***********************************************************************/
99class KeyEventArgs : public WindowEventArgs
100{
101        unsigned long codepoint;
102        Key::Scan scancode;
103        unsigned int sysKeys;
104
105        KeyEventArgs(Window* wnd);
106};
107
108
109
110/************************************************************************
111    DragDropEventArgs
112*************************************************************************/
113class DragDropEventArgs : public WindowEventArgs
114{
115    DragContainer* dragDropItem;
116
117    DragDropEventArgs(Window* wnd);
118};
Note: See TracBrowser for help on using the repository browser.