diff options
author | Marcus Comstedt | 2004-03-14 22:16:22 +0000 |
---|---|---|
committer | Marcus Comstedt | 2004-03-14 22:16:22 +0000 |
commit | f1cac1545bd543fa52a75f2f6a4b6e0f0024380d (patch) | |
tree | 4f62cdf4f5b73a72d10a9d4625c09fa404bf922f /backends/dc/dc.h | |
parent | 0d3b89b88f7b969087549a68a79ffdfa769238e2 (diff) | |
download | scummvm-rg350-f1cac1545bd543fa52a75f2f6a4b6e0f0024380d.tar.gz scummvm-rg350-f1cac1545bd543fa52a75f2f6a4b6e0f0024380d.tar.bz2 scummvm-rg350-f1cac1545bd543fa52a75f2f6a4b6e0f0024380d.zip |
Virtual keyboard.
svn-id: r13279
Diffstat (limited to 'backends/dc/dc.h')
-rw-r--r-- | backends/dc/dc.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/backends/dc/dc.h b/backends/dc/dc.h index cb2f778e2e..d18c722f32 100644 --- a/backends/dc/dc.h +++ b/backends/dc/dc.h @@ -26,6 +26,14 @@ #define NUM_BUFFERS 4 #define SOUND_BUFFER_SHIFT 3 +class Interactive +{ + public: + virtual int key(int k, byte &shiftFlags) = 0; +}; + +#include "softkbd.h" + class OSystem_Dreamcast : public OSystem { public: @@ -145,6 +153,8 @@ class OSystem_Dreamcast : public OSystem { private: + SoftKeyboard _softkbd; + int _ms_cur_x, _ms_cur_y, _ms_cur_w, _ms_cur_h, _ms_old_x, _ms_old_y; int _ms_hotspot_x, _ms_hotspot_y, _ms_visible, _devpoll; int _current_shake_pos, _screen_w, _screen_h; @@ -154,8 +164,9 @@ class OSystem_Dreamcast : public OSystem { void *_sound_proc_param; bool _overlay_visible, _overlay_dirty, _screen_dirty; int _screen_buffer, _overlay_buffer, _mouse_buffer; - bool _aspect_stretch; + bool _aspect_stretch, _softkbd_on; float _overlay_fade, _xscale, _yscale, _top_offset; + int _softkbd_motion; uint32 _timer_duration, _timer_next_expiry; bool _timer_active; @@ -179,9 +190,10 @@ class OSystem_Dreamcast : public OSystem { void setScaling(); }; + extern int handleInput(struct mapledev *pad, int &mouse_x, int &mouse_y, - byte &shiftFlags); + byte &shiftFlags, Interactive *inter = NULL); extern void initSound(); extern bool selectGame(char *&, char *&, class Icon &); |