Last change
on this file since 80 was
80,
checked in by Sam Hocevar, 14 years ago
|
- Adding the Golgotha source code. Not sure what's going to be interesting
in there, but since it's all public domain, there's certainly stuff to
pick up.
|
File size:
1.3 KB
|
Line | |
---|
1 | /********************************************************************** <BR>
|
---|
2 | This file is part of Crack dot Com's free source code release of
|
---|
3 | Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
|
---|
4 | information about compiling & licensing issues visit this URL</a>
|
---|
5 | <PRE> If that doesn't help, contact Jonathan Clark at
|
---|
6 | golgotha_source@usa.net (Subject should have "GOLG" in it)
|
---|
7 | ***********************************************************************/
|
---|
8 |
|
---|
9 | #include "video/glide/glide_display.hh"
|
---|
10 | #include "video/x11/x11_input.hh"
|
---|
11 |
|
---|
12 |
|
---|
13 | class i4_x11_glide_display_class : public i4_glide_display_class
|
---|
14 | {
|
---|
15 | public:
|
---|
16 | x11_input_class input;
|
---|
17 | virtual i4_device_class *local_devices() { return &input; }
|
---|
18 | virtual void destroy_window() { input.destroy_window(); }
|
---|
19 | virtual i4_bool create_window()
|
---|
20 | {
|
---|
21 | return input.create_window(0,0,tmp.xres,
|
---|
22 | tmp.yres, this, i4_F, input.find_visual_with_depth(16));
|
---|
23 | }
|
---|
24 |
|
---|
25 | virtual void get_mouse_pos(sw32 &mouse_x, sw32 &mouse_y)
|
---|
26 | {
|
---|
27 | mouse_x=input.mouse_x;
|
---|
28 | mouse_y=input.mouse_y;
|
---|
29 | }
|
---|
30 |
|
---|
31 | virtual i4_bool lock_mouse_in_place(i4_bool yes_no)
|
---|
32 | {
|
---|
33 | return input.lock_mouse_in_place(yes_no);
|
---|
34 | }
|
---|
35 |
|
---|
36 | };
|
---|
37 |
|
---|
38 | i4_x11_glide_display_class i4_x11_glide_display_instance;
|
---|
Note: See
TracBrowser
for help on using the repository browser.