Mon Jun 3 15:21:17 PDT 2002
[netwalk.git] / eventmaker.e
blob722fc472ea359b215431e1819d18890648ef92a2
1 expanded class EVENTMAKER
2 inherit SDL_CONSTANT
3 feature
4 make_keydown(key : INTEGER; kmod : INTEGER) : EVENT is
5 do
6 !!Result.make
7 Result.put_type(sdl_keydown)
8 Result.put_i1(key)
9 Result.put_kmod(kmod)
10 end
12 make_mbdown(b : INTEGER; kmod : INTEGER; x, y : INTEGER) : EVENT is
14 !!Result.make
15 Result.put_type(sdl_mousebuttondown)
16 Result.put_i1(b)
17 Result.put_kmod(kmod)
18 Result.put_xy(x, y)
19 end
21 make_quit : EVENT is
23 !!Result.make
24 Result.put_type(sdl_quit)
25 end
26 end