diff options
author | Vincent Torri <vincent.torri@gmail.com> | 2010-09-25 06:10:18 +0000 |
---|---|---|
committer | Vincent Torri <vincent.torri@gmail.com> | 2010-09-25 06:10:18 +0000 |
commit | 42dba1a3ea40fc0b0ad60261171c8119c656f542 (patch) | |
tree | 39b7f45185d9601af09ecd1b5ea0b0679779cbb7 /legacy/ecore/src/lib/ecore_sdl/Ecore_Sdl.h | |
parent | 1f3091dbb3d182801597c05ad81ae321c18ba1e2 (diff) |
formatting
SVN revision: 52726
Diffstat (limited to 'legacy/ecore/src/lib/ecore_sdl/Ecore_Sdl.h')
-rw-r--r-- | legacy/ecore/src/lib/ecore_sdl/Ecore_Sdl.h | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/legacy/ecore/src/lib/ecore_sdl/Ecore_Sdl.h b/legacy/ecore/src/lib/ecore_sdl/Ecore_Sdl.h index 27257f5935..317b0fcdf4 100644 --- a/legacy/ecore/src/lib/ecore_sdl/Ecore_Sdl.h +++ b/legacy/ecore/src/lib/ecore_sdl/Ecore_Sdl.h | |||
@@ -50,63 +50,63 @@ EAPI extern int ECORE_SDL_EVENT_EXPOSE; | |||
50 | typedef struct _Ecore_Sdl_Event_Key_Down Ecore_Sdl_Event_Key_Down; | 50 | typedef struct _Ecore_Sdl_Event_Key_Down Ecore_Sdl_Event_Key_Down; |
51 | struct _Ecore_Sdl_Event_Key_Down /** SDL Key Down event */ | 51 | struct _Ecore_Sdl_Event_Key_Down /** SDL Key Down event */ |
52 | { | 52 | { |
53 | const char *keyname; /**< The name of the key that was pressed */ | 53 | const char *keyname; /**< The name of the key that was pressed */ |
54 | const char *keycompose; /**< The UTF-8 string conversion if any */ | 54 | const char *keycompose; /**< The UTF-8 string conversion if any */ |
55 | unsigned int time; | 55 | unsigned int time; |
56 | }; | 56 | }; |
57 | 57 | ||
58 | typedef struct _Ecore_Sdl_Event_Key_Up Ecore_Sdl_Event_Key_Up; | 58 | typedef struct _Ecore_Sdl_Event_Key_Up Ecore_Sdl_Event_Key_Up; |
59 | struct _Ecore_Sdl_Event_Key_Up /** SDL Key Up event */ | 59 | struct _Ecore_Sdl_Event_Key_Up /** SDL Key Up event */ |
60 | { | 60 | { |
61 | const char *keyname; /**< The name of the key that was released */ | 61 | const char *keyname; /**< The name of the key that was released */ |
62 | const char *keycompose; /**< The UTF-8 string conversion if any */ | 62 | const char *keycompose; /**< The UTF-8 string conversion if any */ |
63 | unsigned int time; | 63 | unsigned int time; |
64 | }; | 64 | }; |
65 | 65 | ||
66 | typedef struct _Ecore_Sdl_Event_Mouse_Button_Down Ecore_Sdl_Event_Mouse_Button_Down; | 66 | typedef struct _Ecore_Sdl_Event_Mouse_Button_Down Ecore_Sdl_Event_Mouse_Button_Down; |
67 | struct _Ecore_Sdl_Event_Mouse_Button_Down /** SDL Mouse Down event */ | 67 | struct _Ecore_Sdl_Event_Mouse_Button_Down /** SDL Mouse Down event */ |
68 | { | 68 | { |
69 | int button; /**< Mouse button that was pressed (1 - 32) */ | 69 | int button; /**< Mouse button that was pressed (1 - 32) */ |
70 | int x; /**< Mouse co-ordinates when mouse button was pressed */ | 70 | int x; /**< Mouse co-ordinates when mouse button was pressed */ |
71 | int y; /**< Mouse co-ordinates when mouse button was pressed */ | 71 | int y; /**< Mouse co-ordinates when mouse button was pressed */ |
72 | int double_click : 1; /**< Set if click was a double click */ | 72 | int double_click : 1; /**< Set if click was a double click */ |
73 | int triple_click : 1; /**< Set if click was a triple click */ | 73 | int triple_click : 1; /**< Set if click was a triple click */ |
74 | unsigned int time; | 74 | unsigned int time; |
75 | }; | 75 | }; |
76 | 76 | ||
77 | typedef struct _Ecore_Sdl_Event_Mouse_Button_Up Ecore_Sdl_Event_Mouse_Button_Up; | 77 | typedef struct _Ecore_Sdl_Event_Mouse_Button_Up Ecore_Sdl_Event_Mouse_Button_Up; |
78 | struct _Ecore_Sdl_Event_Mouse_Button_Up /** SDL Mouse Up event */ | 78 | struct _Ecore_Sdl_Event_Mouse_Button_Up /** SDL Mouse Up event */ |
79 | { | 79 | { |
80 | int button; /**< Mouse button that was released (1 - 32) */ | 80 | int button; /**< Mouse button that was released (1 - 32) */ |
81 | int x; /**< Mouse co-ordinates when mouse button was raised */ | 81 | int x; /**< Mouse co-ordinates when mouse button was raised */ |
82 | int y; /**< Mouse co-ordinates when mouse button was raised */ | 82 | int y; /**< Mouse co-ordinates when mouse button was raised */ |
83 | int double_click : 1; /**< Set if click was a double click */ | 83 | int double_click : 1; /**< Set if click was a double click */ |
84 | int triple_click : 1; /**< Set if click was a triple click */ | 84 | int triple_click : 1; /**< Set if click was a triple click */ |
85 | unsigned int time; | 85 | unsigned int time; |
86 | }; | 86 | }; |
87 | 87 | ||
88 | typedef struct _Ecore_Sdl_Event_Mouse_Move Ecore_Sdl_Event_Mouse_Move; | 88 | typedef struct _Ecore_Sdl_Event_Mouse_Move Ecore_Sdl_Event_Mouse_Move; |
89 | struct _Ecore_Sdl_Event_Mouse_Move /** SDL Mouse Move event */ | 89 | struct _Ecore_Sdl_Event_Mouse_Move /** SDL Mouse Move event */ |
90 | { | 90 | { |
91 | int x; /**< Mouse co-ordinates where the mouse cursor moved to */ | 91 | int x; /**< Mouse co-ordinates where the mouse cursor moved to */ |
92 | int y; /**< Mouse co-ordinates where the mouse cursor moved to */ | 92 | int y; /**< Mouse co-ordinates where the mouse cursor moved to */ |
93 | unsigned int time; | 93 | unsigned int time; |
94 | }; | 94 | }; |
95 | 95 | ||
96 | typedef struct _Ecore_Sdl_Event_Mouse_Wheel Ecore_Sdl_Event_Mouse_Wheel; | 96 | typedef struct _Ecore_Sdl_Event_Mouse_Wheel Ecore_Sdl_Event_Mouse_Wheel; |
97 | struct _Ecore_Sdl_Event_Mouse_Wheel /** SDL Mouse Wheel event */ | 97 | struct _Ecore_Sdl_Event_Mouse_Wheel /** SDL Mouse Wheel event */ |
98 | { | 98 | { |
99 | int x,y; | 99 | int x,y; |
100 | int direction; /* 0 = vertical, 1 = horizontal */ | 100 | int direction; /* 0 = vertical, 1 = horizontal */ |
101 | int wheel; /* value 1 (left/up), -1 (right/down) */ | 101 | int wheel; /* value 1 (left/up), -1 (right/down) */ |
102 | unsigned int time; | 102 | unsigned int time; |
103 | }; | 103 | }; |
104 | 104 | ||
105 | typedef struct _Ecore_Sdl_Event_Video_Resize Ecore_Sdl_Event_Video_Resize; | 105 | typedef struct _Ecore_Sdl_Event_Video_Resize Ecore_Sdl_Event_Video_Resize; |
106 | struct _Ecore_Sdl_Event_Video_Resize | 106 | struct _Ecore_Sdl_Event_Video_Resize |
107 | { | 107 | { |
108 | int w; | 108 | int w; |
109 | int h; | 109 | int h; |
110 | }; | 110 | }; |
111 | 111 | ||
112 | EAPI int ecore_sdl_init(const char *name); | 112 | EAPI int ecore_sdl_init(const char *name); |