1 /***************************************************************************
2                           Event.h  -  description
3                              -------------------
4     begin                : Sat Feb 14 2004
5     copyright            : (C) 2004 by upi
6     email                : upi@feel
7  ***************************************************************************/
8 
9 
10 #ifndef EVENT_H
11 #define EVENT_H
12 
13 
14 enum TMortalEventEnum
15 {
16 	Me_NOTHING,
17 	Me_QUIT,
18 	Me_MENU,
19 	Me_SKIP,
20 	Me_PLAYERKEYDOWN,
21 	Me_PLAYERKEYUP,
22 };
23 
24 
25 enum TMortalKeysEnum
26 {
27 	Mk_UP		= 0,
28 	Mk_DOWN		= 1,
29 	Mk_LEFT		= 2,
30 	Mk_RIGHT	= 3,
31 	Mk_BLOCK	= 4,
32 	Mk_LPUNCH	= 5,
33 	Mk_HPUNCH	= 6,
34 	Mk_LKICK	= 7,
35 	Mk_HKICK	= 8,
36 };
37 
38 struct SMortalEvent
39 {
40 	TMortalEventEnum	m_enType;
41 	int					m_iPlayer;
42 	int					m_iKey;
43 };
44 
45 bool TranslateEvent( const SDL_Event* a_poInSDLEvent, SMortalEvent* a_poOutEvent );
46 bool MortalPollEvent( SMortalEvent& a_roOutEvent );
47 void MortalWaitEvent( SMortalEvent& a_roOutEvent );
48 
49 
50 #endif
51 
52