ScummVM API documentation
main_loop.h
1/* ScummVM - Graphic Adventure Engine
2 *
3 * ScummVM is the legal property of its developers, whose names
4 * are too numerous to list here. Please refer to the COPYRIGHT
5 * file distributed with this source distribution.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 *
20 */
21
22#ifndef CINE_MAINLOOP_H
23#define CINE_MAINLOOP_H
24
25namespace Cine {
26
35};
36
48};
49
50void mainLoop(int bootScriptIdx);
51void manageEvents(CallSource callSource, EventTarget eventTarget, bool useMaxMouseButtonState = false, Common::Array<Common::Rect> rects = Common::Array<Common::Rect>());
52
53} // End of namespace Cine
54
55#endif
Definition: anim.h:29
EventTarget
Definition: main_loop.h:37
@ UNTIL_MOUSE_BUTTON_DOWN_OR_KEY_UP_OR_DOWN_OR_IN_RECTS
Wait until at least one mouse button down, up key pressed, down key pressed or mouse position in at l...
Definition: main_loop.h:44
@ UNTIL_MOUSE_BUTTON_DOWN_UP
Wait until first at least one mouse button down, finally all up.
Definition: main_loop.h:39
@ UNTIL_MOUSE_BUTTON_UP_DOWN_UP
Wait until first mouse buttons all up, then at least one down, finally all up.
Definition: main_loop.h:38
@ UNTIL_MOUSE_BUTTON_UP_DOWN
Wait until first all mouse buttons up, finally at least one down.
Definition: main_loop.h:42
@ UNTIL_WAIT_ENDED
Wait until wait period (getTimerDelay()) ended.
Definition: main_loop.h:46
@ EMPTY_EVENT_QUEUE
Empty the event queue.
Definition: main_loop.h:47
@ UNTIL_MOUSE_BUTTON_DOWN_OR_KEY_INPUT
Wait until at least one mouse button down or a key pressed.
Definition: main_loop.h:45
@ UNTIL_MOUSE_BUTTON_UP_AND_WAIT_ENDED
Wait until all mouse buttons up and wait period (getTimerDelay()) ended.
Definition: main_loop.h:41
@ UNTIL_MOUSE_BUTTON_DOWN
Wait until at least one mouse button down.
Definition: main_loop.h:43
@ UNTIL_MOUSE_BUTTON_UP
Wait until all mouse buttons up.
Definition: main_loop.h:40
CallSource
Definition: main_loop.h:27
@ MAKE_MENU_CHOICE
Called from makeMenuChoice function.
Definition: main_loop.h:30
@ WAIT_PLAYER_INPUT
Called from waitPlayerInput function.
Definition: main_loop.h:34
@ EXECUTE_PLAYER_INPUT
Called from executePlayerInput function.
Definition: main_loop.h:28
@ MAIN_LOOP_WAIT_FOR_PLAYER_CLICK
Called from mainLoop function's waiting for player click section.
Definition: main_loop.h:29
@ MAKE_TEXT_ENTRY_MENU
Called from makeTextEntryMenu function.
Definition: main_loop.h:32
@ PROCESS_INVENTORY
Called from processInventory function.
Definition: main_loop.h:33
@ MAKE_SYSTEM_MENU
Called from makeSystemMenu function.
Definition: main_loop.h:31