diff options
author | Florian Kagerer | 2009-02-15 03:36:30 +0000 |
---|---|---|
committer | Florian Kagerer | 2009-02-15 03:36:30 +0000 |
commit | 16a57f299cdad82a87c1d397b56b663a9426c38e (patch) | |
tree | 21fcc6ac31586e322840be55c4dc052654c0b385 /engines/kyra/staticres.cpp | |
parent | 36767120e1d3553217809af262d844474f926c03 (diff) | |
download | scummvm-rg350-16a57f299cdad82a87c1d397b56b663a9426c38e.tar.gz scummvm-rg350-16a57f299cdad82a87c1d397b56b663a9426c38e.tar.bz2 scummvm-rg350-16a57f299cdad82a87c1d397b56b663a9426c38e.zip |
LOL: - implemented proper button processing (works exactly as in Kyra 2 and 3, so we do have some code duplication atm, I just fixed right mouse button support for LOL)
- keyboard control now works
svn-id: r38190
Diffstat (limited to 'engines/kyra/staticres.cpp')
-rw-r--r-- | engines/kyra/staticres.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/engines/kyra/staticres.cpp b/engines/kyra/staticres.cpp index 988cfd4584..7bd556cebf 100644 --- a/engines/kyra/staticres.cpp +++ b/engines/kyra/staticres.cpp @@ -44,7 +44,7 @@ namespace Kyra { -#define RESFILE_VERSION 36 +#define RESFILE_VERSION 37 namespace { bool checkKyraDat(Common::SeekableReadStream *file) { @@ -1078,9 +1078,8 @@ bool StaticResource::loadButtonDefs(const char *filename, void *&ptr, int &size) for (int i = 0; i < size; i++) { r[i].buttonflags = file->readUint16BE(); - r[i].clickedShapeId = file->readByte(); - file->readByte(); - r[i].unk2 = file->readUint16BE(); + r[i].keyCode = file->readUint16BE(); + r[i].keyCode2 = file->readUint16BE(); r[i].x = file->readSint16BE(); r[i].y = file->readSint16BE(); r[i].w = file->readUint16BE(); |