summaryrefslogtreecommitdiff
path: root/navit/gui/sdl/sdl_events.h
blob: b4d6e60ae1fb8b40bf59406cfe24b70c1266cd89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#include "SDL/SDL.h"
#include "CEGUI.h"



#define SRCH_COUNTRY 1
#define SRCH_TOWN 2
#define SRCH_STREET 3
#define SRCH_NUMBER 4



bool handleItemSelect(int r);
bool ItemSelect(const CEGUI::EventArgs& event);
bool handleMouseEnters(const CEGUI::EventArgs& event);
void handle_destination_change();

bool DestinationEntryChange(const CEGUI::EventArgs& event);
bool DestinationWindowSwitch(const CEGUI::EventArgs& event);
bool BookmarkSelectionSwitch(const CEGUI::EventArgs& event);
bool BookmarkSelect(const CEGUI::EventArgs& event);
bool FormerDestSelectionSwitch(const CEGUI::EventArgs& event);
bool FormerDestSelect(const CEGUI::EventArgs& event);
bool AddressSearchSwitch(const CEGUI::EventArgs& event);
bool Switch_to_nGhost(const CEGUI::EventArgs& event);
bool RoadBookSwitch(const CEGUI::EventArgs& event);
bool ButtonGo(const CEGUI::EventArgs& event);
bool ZoomIn(const CEGUI::EventArgs& event);
bool ZoomOut(const CEGUI::EventArgs& event);
bool ButtonQuit(const CEGUI::EventArgs& event);

void inject_time_pulse(double& last_time_pulse);

bool Handle_Virtual_Key_Down(const CEGUI::EventArgs& event);

CEGUI::uint SDLKeyToCEGUIKey(SDLKey key);

void inject_input(bool& must_quit);